sink: Set monitor source's avoid-resampling value to its sink's

It was omitted. This patch fixes unexpected behavior that avoid-
resampling does not work in some cases.

Signed-off-by: Sangchul Lee <sangchul1011@gmail.com>
This commit is contained in:
Sangchul Lee 2019-06-07 21:20:55 +09:00
parent 37dbeae031
commit 8a4e0c167b

View file

@ -367,6 +367,7 @@ pa_sink* pa_sink_new(
source_data.driver = data->driver;
source_data.module = data->module;
source_data.card = data->card;
source_data.avoid_resampling = data->avoid_resampling;
dn = pa_proplist_gets(s->proplist, PA_PROP_DEVICE_DESCRIPTION);
pa_proplist_setf(source_data.proplist, PA_PROP_DEVICE_DESCRIPTION, "Monitor of %s", dn ? dn : s->name);