module-combine-sink: Initialize smoother with offset pa_rtclock_now()
authorForest Bond <forest.bond@rapidrollout.com>
Fri, 20 May 2011 16:07:05 +0000 (12:07 -0400)
committerColin Guthrie <colin@mageia.org>
Thu, 2 Jun 2011 09:46:59 +0000 (11:46 +0200)
The smoother was being initialized with offset zero, which caused
the sink latency to be unconditionally reported as zero.

src/modules/module-combine-sink.c

index f6d6453..c5c33f2 100644 (file)
@@ -1159,7 +1159,7 @@ int pa__init(pa_module*m) {
             TRUE,
             TRUE,
             10,
-            0,
+            pa_rtclock_now(),
             FALSE);
 
     adjust_time_sec = DEFAULT_ADJUST_TIME_USEC / PA_USEC_PER_SEC;