src/pulsecore/sink.c | 2 +- src/pulsecore/source.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
New commits: commit 034006ec90a070ee309ef7b16247ac9c9501cf03 Author: Arun Raghavan <[email protected]> Date: Tue Oct 18 09:53:20 2011 +0530 sink,source: Account for corked streams in update_rate() pa_sink/source_used_by() ignores corked/monitor streams, but we need to make sure there aren't any of these while updating rate (at least for now -- this is a restriction that would be nice to get rid of). diff --git a/src/pulsecore/sink.c b/src/pulsecore/sink.c index 5ca2453..454285f 100644 --- a/src/pulsecore/sink.c +++ b/src/pulsecore/sink.c @@ -1385,7 +1385,7 @@ pa_bool_t pa_sink_update_rate(pa_sink *s, uint32_t rate, pa_bool_t passthrough) desired_rate = rate; /* use stream sampling rate, discard default/alternate settings */ } - if (passthrough || pa_sink_used_by(s) == 0) { + if (passthrough || pa_sink_linked_by(s) == 0) { pa_sink_suspend(s, TRUE, PA_SUSPEND_IDLE); /* needed before rate update, will be resumed automatically */ } diff --git a/src/pulsecore/source.c b/src/pulsecore/source.c index e70e446..6da6ef2 100644 --- a/src/pulsecore/source.c +++ b/src/pulsecore/source.c @@ -972,7 +972,7 @@ pa_bool_t pa_source_update_rate(pa_source *s, uint32_t rate, pa_bool_t passthrou desired_rate = rate; /* use stream sampling rate, discard default/alternate settings */ } - if (passthrough || pa_source_used_by(s) == 0) { + if (passthrough || pa_source_linked_by(s) == 0) { pa_source_suspend(s, TRUE, PA_SUSPEND_IDLE); /* needed before rate update, will be resumed automatically */ } _______________________________________________ pulseaudio-commits mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/pulseaudio-commits
