combine-sink: fix zero adjust_time behaviour.

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.
This commit is contained in:
Hemanth Meenakshisundaram 2014-04-20 17:30:07 -07:00 committed by Tanu Kaskinen
parent f2f5dffb1d
commit 4bd39f9501

View file

@ -610,7 +610,7 @@ static void unsuspend(struct userdata *u) {
PA_IDXSET_FOREACH(o, u->outputs, idx) PA_IDXSET_FOREACH(o, u->outputs, idx)
output_enable(o); 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); u->time_event = pa_core_rttime_new(u->core, pa_rtclock_now() + u->adjust_time, time_callback, u);
pa_log_info("Resumed successfully..."); pa_log_info("Resumed successfully...");