]> code.delx.au - pulseaudio/commitdiff
combine-sink: fix zero adjust_time behaviour.
authorHemanth Meenakshisundaram <hemanth@highfive.com>
Mon, 21 Apr 2014 00:30:07 +0000 (17:30 -0700)
committerTanu Kaskinen <tanu.kaskinen@linux.intel.com>
Sat, 26 Apr 2014 08:22:25 +0000 (11:22 +0300)
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

index deabcebbd43959ca586de955d75f70007c406f5b..ccb2a493a36287f51f5b72a5fc67a7e0b345c2fc 100644 (file)
@@ -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...");