mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
adapter: name Duplex port names capture/playback
This commit is contained in:
parent
57886c1198
commit
53adabea19
1 changed files with 2 additions and 2 deletions
|
|
@ -111,13 +111,13 @@ static void node_port_init(void *data, struct pw_impl_port *port)
|
|||
else
|
||||
is_device = false;
|
||||
|
||||
is_duplex = media_class != NULL &&strstr(media_class, "Duplex") != NULL;
|
||||
is_duplex = media_class != NULL && strstr(media_class, "Duplex") != NULL;
|
||||
|
||||
new = pw_properties_new(NULL, NULL);
|
||||
|
||||
if (is_monitor && !is_duplex)
|
||||
prefix = "monitor";
|
||||
else if (is_device)
|
||||
else if (is_device || is_duplex)
|
||||
prefix = direction == PW_DIRECTION_INPUT ?
|
||||
"playback" : "capture";
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue