mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-02-07 04:06:12 -05: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
a2287be601
commit
bf148d59cd
1 changed files with 2 additions and 0 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue