]> code.delx.au - pulseaudio/commit
source: Fix monitor source rate changing
authorTanu Kaskinen <tanu.kaskinen@linux.intel.com>
Fri, 9 Aug 2013 04:45:26 +0000 (07:45 +0300)
committerTanu Kaskinen <tanu.kaskinen@linux.intel.com>
Tue, 27 Aug 2013 12:34:33 +0000 (15:34 +0300)
commit2c14306507ce5049fb2bc883acea4f0d8c879876
tree95ee8b677001cfd71bd568d491d6809df85cfe3e
parent9a590dd3f258bb7ea420a36196e4c4a7e549753a
source: Fix monitor source rate changing

When a sink changes its sample rate, also the monitor source rate
needs to be changed. In order to determine whether a source supports
rate changing, the code checks if the update_rate() callback is set,
but monitor sources don't have that callback set, so the old code
always failed to change the monitor source rate.

This patch fixes the monitor source rate changing by handling monitor
sources as a special case in pa_source_update_rate(): if the source is
a monitor source, then the update_rate() callback is not required.

BugLink: https://bugs.freedesktop.org/show_bug.cgi?id=66424
src/pulsecore/source.c