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 committed by Wim Taymans
parent a2287be601
commit bf148d59cd

View file

@ -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");