mixer: Don't sync volume sink with e_client if they have more than one.

If we got more than one volume sink in e_client and we change the volume
of one of them all sink of this e_client are updated to the same volume.
So don't update e_client volume if we got more than 1 sink.

T4821
This commit is contained in:
Michaël Bouchaud (yoz) 2016-11-04 11:03:11 +01:00
parent ec12cff9f4
commit 568a676073
1 changed files with 12 additions and 1 deletions

View File

@ -950,7 +950,18 @@ _sink_input_event(int type, Emix_Sink_Input *input)
{
if (sink->data == input)
{
e_client_volume_sink_update(sink);
Eina_Bool update = EINA_TRUE;
EINA_LIST_FOREACH(sink->clients, l, ec)
{
if (eina_list_count(ec->sinks) > 1)
{
update = EINA_FALSE;
break;
}
}
if (update)
e_client_volume_sink_update(sink);
}
}
break;