mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-06 13:30:01 -05:00
modules: fix ladpsa source properties
Put the properties on the right stream. See #2086
This commit is contained in:
parent
9ec782630c
commit
cec420478a
1 changed files with 5 additions and 5 deletions
|
|
@ -205,11 +205,11 @@ struct module *create_module_ladspa_source(struct impl *impl, const char *argume
|
|||
module_args_add_props(props, argument);
|
||||
|
||||
if ((str = pw_properties_get(props, "source_name")) != NULL) {
|
||||
pw_properties_set(capture_props, PW_KEY_NODE_NAME, str);
|
||||
pw_properties_set(playback_props, PW_KEY_NODE_NAME, str);
|
||||
pw_properties_set(props, "source_name", NULL);
|
||||
}
|
||||
if ((str = pw_properties_get(props, "source_properties")) != NULL) {
|
||||
module_args_add_props(capture_props, str);
|
||||
module_args_add_props(playback_props, str);
|
||||
pw_properties_set(props, "source_properties", NULL);
|
||||
}
|
||||
if (pw_properties_get(playback_props, PW_KEY_MEDIA_CLASS) == NULL)
|
||||
|
|
@ -219,15 +219,15 @@ struct module *create_module_ladspa_source(struct impl *impl, const char *argume
|
|||
|
||||
if ((str = pw_properties_get(props, "master")) != NULL ||
|
||||
(str = pw_properties_get(props, "source_master")) != NULL) {
|
||||
pw_properties_set(playback_props, PW_KEY_NODE_TARGET, str);
|
||||
pw_properties_set(capture_props, PW_KEY_NODE_TARGET, str);
|
||||
pw_properties_set(props, "master", NULL);
|
||||
}
|
||||
|
||||
if (module_args_to_audioinfo(impl, props, &capture_info) < 0) {
|
||||
if (module_args_to_audioinfo(impl, props, &playback_info) < 0) {
|
||||
res = -EINVAL;
|
||||
goto out;
|
||||
}
|
||||
playback_info = capture_info;
|
||||
capture_info = playback_info;
|
||||
|
||||
position_to_props(&capture_info, capture_props);
|
||||
position_to_props(&playback_info, playback_props);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue