forked from enlightenment/enlightenment
Revert "mixer: try to fix a possible bug"
This reverts commit 61182d6434
.
accidentally pushed, does not resolve anything
This commit is contained in:
parent
fefdca1f00
commit
fe34f45995
|
@ -251,9 +251,6 @@ _sink_remove_cb(int index, void *data EINA_UNUSED)
|
|||
Eina_List *l;
|
||||
DBG("Removing sink: %d", index);
|
||||
|
||||
if (index == ctx->default_sink)
|
||||
ctx->default_sink = -1;
|
||||
|
||||
EINA_LIST_FOREACH(ctx->sinks, l, sink)
|
||||
{
|
||||
if (sink->idx == index)
|
||||
|
@ -1022,7 +1019,7 @@ _sink_default_get(void)
|
|||
|
||||
EINA_SAFETY_ON_NULL_RETURN_VAL(ctx, NULL);
|
||||
EINA_LIST_FOREACH(ctx->sinks, l, s)
|
||||
if (s->idx == ctx->default_sink || ctx->default_sink == -1)
|
||||
if (s->idx == ctx->default_sink)
|
||||
return (Emix_Sink *)s;
|
||||
|
||||
return NULL;
|
||||
|
|
Loading…
Reference in New Issue