From bf148d59cd382be5492978dbb106a40f6f9a0b12 Mon Sep 17 00:00:00 2001 From: Pauli Virtanen Date: Sun, 14 Apr 2024 18:20:43 +0300 Subject: [PATCH] combine-stream: actually make use of resample.disable resample.disable was made to default to true, but copying it to stream properties was forgotten so it didn't have any effect. Make sure to copy it. This will also prevent different input/output streams from negotiating to different rates, which would result to broken audio since we are just passing sample data through. --- src/modules/module-combine-stream.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/modules/module-combine-stream.c b/src/modules/module-combine-stream.c index 22a9fc8b9..a13b2ebc5 100644 --- a/src/modules/module-combine-stream.c +++ b/src/modules/module-combine-stream.c @@ -1542,6 +1542,7 @@ int pipewire__module_init(struct pw_impl_module *module, const char *args) copy_props(props, impl->combine_props, PW_KEY_NODE_VIRTUAL); copy_props(props, impl->combine_props, PW_KEY_MEDIA_CLASS); copy_props(props, impl->combine_props, "resample.prefill"); + copy_props(props, impl->combine_props, "resample.disable"); parse_audio_info(impl->combine_props, &impl->info); @@ -1549,6 +1550,7 @@ int pipewire__module_init(struct pw_impl_module *module, const char *args) copy_props(props, impl->stream_props, PW_KEY_NODE_VIRTUAL); copy_props(props, impl->stream_props, PW_KEY_NODE_LINK_GROUP); copy_props(props, impl->stream_props, "resample.prefill"); + copy_props(props, impl->stream_props, "resample.disable"); if (pw_properties_get(impl->stream_props, PW_KEY_MEDIA_ROLE) == NULL) pw_properties_set(props, PW_KEY_MEDIA_ROLE, "filter");