diff options
author | Colin Guthrie <cguthrie@mandriva.org> | 2009-10-01 20:13:38 +0100 |
---|---|---|
committer | Colin Guthrie <cguthrie@mandriva.org> | 2009-11-11 17:44:26 +0000 |
commit | 763de9e7c96c0c5367017b223f26b3ed218c8824 (patch) | |
tree | 0326f2eed7aae85db14188d73f540d0893344095 /src/modules | |
parent | d5dc7009134ac38235d320f1944e02b3e2dfa0ab (diff) |
device-manager: Fix the writing of the database when priority doesn't change.
Diffstat (limited to 'src/modules')
-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; |