mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-01 22:58:50 -04:00
raop: use 1500ms of latency as fallback
The Pro Link 1 replies with Audio-latency=0, patch that up to 1500ms to make it work again. Previously it configured 1500ms as the default latency but that seems unnecessary in the usual case. Fixes #3698
This commit is contained in:
parent
00d1b85eea
commit
ca011af2cd
1 changed files with 5 additions and 1 deletions
|
|
@ -153,6 +153,7 @@ PW_LOG_TOPIC_STATIC(mod_topic, "mod." NAME);
|
|||
#define RAOP_STRIDE (2*DEFAULT_CHANNELS)
|
||||
#define RAOP_RATE 44100
|
||||
#define RAOP_LATENCY_MS 250
|
||||
#define DEFAULT_LATENCY_MS 1500
|
||||
|
||||
#define VOLUME_MAX 0.0
|
||||
#define VOLUME_MIN -30.0
|
||||
|
|
@ -890,8 +891,11 @@ static int rtsp_record_reply(void *data, int status, const struct spa_dict *head
|
|||
|
||||
if ((str = spa_dict_lookup(headers, "Audio-Latency")) != NULL) {
|
||||
uint32_t l;
|
||||
if (spa_atou32(str, &l, 0))
|
||||
if (spa_atou32(str, &l, 0)) {
|
||||
if (l == 0)
|
||||
l = msec_to_samples(impl, DEFAULT_LATENCY_MS);
|
||||
impl->latency = SPA_MAX(l, impl->latency);
|
||||
}
|
||||
}
|
||||
|
||||
spa_zero(latency);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue