Revert "mixer: try to fix a possible bug"

This reverts commit 61182d6434.

accidentally pushed, does not resolve anything
This commit is contained in:
Mike Blumenkrantz 2016-04-12 13:38:44 -04:00
parent fefdca1f00
commit fe34f45995
1 changed files with 1 additions and 4 deletions

View File

@ -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;