mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
avoid some useless assignments
This commit is contained in:
parent
4f60dcadc6
commit
eb93f259e0
7 changed files with 10 additions and 13 deletions
|
|
@ -223,12 +223,11 @@ struct pw_impl_node *pw_adapter_new(struct pw_context *context,
|
|||
if ((str = pw_properties_get(props, PW_KEY_NODE_ID)) != NULL)
|
||||
pw_properties_set(props, PW_KEY_NODE_SESSION, str);
|
||||
|
||||
if ((str = pw_properties_get(props, "factory.mode")) == NULL) {
|
||||
if (direction == PW_DIRECTION_INPUT) {
|
||||
if (pw_properties_get(props, "factory.mode") == NULL) {
|
||||
if (direction == PW_DIRECTION_INPUT)
|
||||
str = "merge";
|
||||
} else {
|
||||
else
|
||||
str = "split";
|
||||
}
|
||||
pw_properties_set(props, "factory.mode", str);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue