mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
device-manager: Fix copy+paste code that looped over the tagstruct when not necessary
This commit is contained in:
parent
103897a1e3
commit
95f28393ab
1 changed files with 37 additions and 40 deletions
|
|
@ -478,9 +478,8 @@ static int extension_cb(pa_native_protocol *p, pa_module *m, pa_native_connectio
|
|||
|
||||
break;
|
||||
|
||||
case SUBCOMMAND_ROLE_DEVICE_PRIORITY_ROUTING:
|
||||
case SUBCOMMAND_ROLE_DEVICE_PRIORITY_ROUTING: {
|
||||
|
||||
while (!pa_tagstruct_eof(t)) {
|
||||
pa_bool_t enable;
|
||||
uint32_t sridx = PA_INVALID_INDEX;
|
||||
uint32_t idx;
|
||||
|
|
@ -523,11 +522,9 @@ static int extension_cb(pa_native_protocol *p, pa_module *m, pa_native_connectio
|
|||
if (!pa_module_load(u->core, "module-stream-restore", ""))
|
||||
pa_log_warn("Failed to load module-stream-restore while disabling role-based device-priority routing");
|
||||
}
|
||||
}
|
||||
|
||||
trigger_save(u);
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
case SUBCOMMAND_SUBSCRIBE: {
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue