mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
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:
parent
f2f5dffb1d
commit
4bd39f9501
1 changed files with 1 additions and 1 deletions
|
|
@ -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...");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue