mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
adapter: number unknown ports from 1 instead of 0
This makes it like what jack does.
This commit is contained in:
parent
c7b7afa664
commit
38a7333608
1 changed files with 1 additions and 1 deletions
|
|
@ -128,7 +128,7 @@ static void node_port_init(void *data, struct pw_impl_port *port)
|
||||||
|
|
||||||
if ((str = pw_properties_get(old, PW_KEY_AUDIO_CHANNEL)) == NULL ||
|
if ((str = pw_properties_get(old, PW_KEY_AUDIO_CHANNEL)) == NULL ||
|
||||||
strcmp(str, "UNK") == 0) {
|
strcmp(str, "UNK") == 0) {
|
||||||
snprintf(position, sizeof(position), "%d", pw_impl_port_get_id(port));
|
snprintf(position, sizeof(position), "%d", pw_impl_port_get_id(port) + 1);
|
||||||
str = position;
|
str = position;
|
||||||
}
|
}
|
||||||
if (direction == n->direction) {
|
if (direction == n->direction) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue