modules:mixer:pulse Update default sink

Update the default sink when it changes (for instance when it is changed
on pavucontrol).
This commit is contained in:
Flavio Ceolin 2015-07-26 20:33:07 -03:00
parent 15d13dad16
commit 7c195e383c
1 changed files with 9 additions and 1 deletions

View File

@ -648,7 +648,15 @@ _subscribe_cb(pa_context *c, pa_subscription_event_type_t t,
pa_operation_unref(o);
}
break;
case PA_SUBSCRIPTION_EVENT_SERVER:
if (!(o = pa_context_get_server_info(c, _server_info_cb,
data)))
{
ERR("pa_context_get_server_info() failed");
return;
}
pa_operation_unref(o);
break;
default:
WRN("Event not handled");
break;