mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-29 05:40:23 -04:00
tunnel-sink-new: Fix requested latency check
This fixes a bug in latency configuration. The wrong type in the cast caused UINT64_MAX being not treated as special, so the configured latency was set to UINT64_MAX usecs, which of course is absurdly huge latency.
This commit is contained in:
parent
0df4d56cf8
commit
4971dc9ed6
1 changed files with 1 additions and 1 deletions
|
|
@ -320,7 +320,7 @@ static void context_state_cb(pa_context *c, void *userdata) {
|
|||
}
|
||||
|
||||
requested_latency = pa_sink_get_requested_latency_within_thread(u->sink);
|
||||
if (requested_latency == (uint32_t) -1)
|
||||
if (requested_latency == (pa_usec_t) -1)
|
||||
requested_latency = u->sink->thread_info.max_latency;
|
||||
|
||||
reset_bufferattr(&bufferattr);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue