device-manager: Fix copy+paste code that looped over the tagstruct when not necessary

This commit is contained in:
Colin Guthrie 2009-09-19 16:46:18 +01:00
parent c1ece6ce85
commit a9bd1ab69c

View file

@ -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: {