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).
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 */
}
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 */
}