diff options
-rw-r--r-- | src/modules/module-device-manager.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/modules/module-device-manager.c b/src/modules/module-device-manager.c index 00389b64..6b815bd3 100644 --- a/src/modules/module-device-manager.c +++ b/src/modules/module-device-manager.c @@ -1281,7 +1281,9 @@ static int extension_cb(pa_native_protocol *p, pa_module *m, pa_native_connectio first = TRUE; for (i = 0; i < n_devices; ++i) { if ((e = read_entry(u, devices[i]->device)) && ENTRY_VERSION == e->version) { - if (e->priority[role_index] != idx) { + if (e->priority[role_index] == idx) + idx++; + else { e->priority[role_index] = idx; key.data = (char *) devices[i]->device; |