mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-06 13:30:01 -05:00
impl-port: add port.group property
Can be used to group ports together. Mostly because they are all from the same stream and split into multiple ports by audioconvert/adapter. Also useful for the alsa sequence to group client ports together. Also interesting when pw-filter would be able to handle streams in the future to find out what ports belong to what streams.
This commit is contained in:
parent
54c3fa06ed
commit
9d1d1fcbef
13 changed files with 62 additions and 23 deletions
|
|
@ -176,6 +176,9 @@ 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, PW_KEY_PORT_GROUP) == NULL)
|
||||
pw_properties_setf(props, PW_KEY_PORT_GROUP, "stream.0");
|
||||
|
||||
if ((res = find_format(follower, direction, &media_type, &media_subtype)) < 0)
|
||||
goto error;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue