mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-29 05:40:23 -04:00
device-manager: Fix the writing of the database when priority doesn't change.
This commit is contained in:
parent
7633bb8a29
commit
b8a6436d4b
1 changed files with 3 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue