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 103897a1e3
commit 95f28393ab

View file

@ -478,9 +478,8 @@ static int extension_cb(pa_native_protocol *p, pa_module *m, pa_native_connectio
break; break;
case SUBCOMMAND_ROLE_DEVICE_PRIORITY_ROUTING: case SUBCOMMAND_ROLE_DEVICE_PRIORITY_ROUTING: {
while (!pa_tagstruct_eof(t)) {
pa_bool_t enable; pa_bool_t enable;
uint32_t sridx = PA_INVALID_INDEX; uint32_t sridx = PA_INVALID_INDEX;
uint32_t idx; 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", "")) 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"); pa_log_warn("Failed to load module-stream-restore while disabling role-based device-priority routing");
} }
}
trigger_save(u);
break; break;
}
case SUBCOMMAND_SUBSCRIBE: { case SUBCOMMAND_SUBSCRIBE: {