[pulseaudio-discuss] [PATCH] combine-sink: fix zero adjust_time behaviour.

Hemanth Meenakshisundaram snhemanthm at gmail.com
Sun Apr 20 17:30:07 PDT 2014


From: Hemanth Meenakshisundaram <hemanth at highfive.com>

A value of 0 for adjust_time should disable rate adjustment.
Fix a bug where a 0 value causes rate adjustment to be called
continuously instead after an unsuspend event.
---
 src/modules/module-combine-sink.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/modules/module-combine-sink.c b/src/modules/module-combine-sink.c
index deabceb..bd18b7a 100644
--- a/src/modules/module-combine-sink.c
+++ b/src/modules/module-combine-sink.c
@@ -610,7 +610,7 @@ static void unsuspend(struct userdata *u) {
     PA_IDXSET_FOREACH(o, u->outputs, idx)
         output_enable(o);
 
-    if (!u->time_event)
+    if ((!u->time_event) && (u->adjust_time > 0))
         u->time_event = pa_core_rttime_new(u->core, pa_rtclock_now() + u->adjust_time, time_callback, u);
 
     pa_log_info("Resumed successfully...");
-- 
1.8.5.2



More information about the pulseaudio-discuss mailing list