mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-18 07:00:06 -05:00
Update for new adapter nodes
This commit is contained in:
parent
d00b9f1635
commit
67c1dca897
5 changed files with 52 additions and 38 deletions
11
src/stream.c
11
src/stream.c
|
|
@ -197,7 +197,16 @@ static void configure_device(pa_stream *s)
|
|||
s->device_name = NULL;
|
||||
}
|
||||
else {
|
||||
s->device_index = g->id;
|
||||
if (s->direction == PA_STREAM_RECORD) {
|
||||
if (g->mask == (PA_SUBSCRIPTION_MASK_SINK | PA_SUBSCRIPTION_MASK_SOURCE))
|
||||
s->device_index = g->node_info.monitor;
|
||||
else
|
||||
s->device_index = g->id;
|
||||
}
|
||||
else {
|
||||
s->device_index = g->id;
|
||||
}
|
||||
|
||||
if ((str = pw_properties_get(g->props, PW_KEY_NODE_NAME)) == NULL)
|
||||
s->device_name = strdup("unknown");
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue