adapter: remove factory.mode property

We can deduce this from the way the node is configured with the
PortParam now.
This commit is contained in:
Wim Taymans 2024-02-23 16:28:11 +01:00
parent 9b4b34b78b
commit 86af9de739
2 changed files with 6 additions and 15 deletions

View file

@ -176,14 +176,6 @@ 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 (pw_properties_get(props, "factory.mode") == NULL) {
if (direction == PW_DIRECTION_INPUT)
str = "merge";
else
str = "split";
pw_properties_set(props, "factory.mode", str);
}
if ((res = find_format(follower, direction, &media_type, &media_subtype)) < 0)
goto error;