mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-07 13:30:09 -05:00
port: use right properties
Use format.dsp as a key to mark the dsp format on a port Use audio.channel as the key to set the audio channel on a port
This commit is contained in:
parent
3ad73f0532
commit
a680f434d2
7 changed files with 8 additions and 9 deletions
|
|
@ -202,7 +202,7 @@ static void node_port_init(void *data, struct pw_port *port)
|
|||
else
|
||||
prefix = "capture";
|
||||
|
||||
if ((str = pw_properties_get(old, PW_KEY_PORT_CHANNEL)) == NULL ||
|
||||
if ((str = pw_properties_get(old, PW_KEY_AUDIO_CHANNEL)) == NULL ||
|
||||
strcmp(str, "UNK") == 0) {
|
||||
snprintf(position, 7, "%d", port->port_id);
|
||||
str = position;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue