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.
This commit is contained in:
Pauli Virtanen 2024-04-14 18:20:43 +03:00
parent e1849a0650
commit bff252ce60

View file

@ -1548,6 +1548,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);
@ -1555,6 +1556,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");