[pulseaudio-commits] src/modules
Tanu Kaskinen
tanuk at kemper.freedesktop.org
Sun Oct 19 04:16:55 PDT 2014
src/modules/module-tunnel-sink-new.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 4971dc9ed695256cfb179c5ef4d7bf43d3826ba2
Author: Tanu Kaskinen <tanu.kaskinen at linux.intel.com>
Date: Tue Oct 7 16:56:55 2014 +0300
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.
diff --git a/src/modules/module-tunnel-sink-new.c b/src/modules/module-tunnel-sink-new.c
index 2a91be9..7d3bd99 100644
--- a/src/modules/module-tunnel-sink-new.c
+++ b/src/modules/module-tunnel-sink-new.c
@@ -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);
More information about the pulseaudio-commits
mailing list