mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
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:
parent
e1849a0650
commit
bff252ce60
1 changed files with 2 additions and 0 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue