aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2016-04-12 13:38:44 -0400
committerMike Blumenkrantz <zmike@osg.samsung.com>2016-04-12 13:38:44 -0400
commitfe34f459950abcde841ba0df8531d1da75f4cefe (patch)
tree2fc2a64d5651f370adc67580d7b489a46372fcb8
parentredo e_place_desk_region_smart() to handle multiple screens (diff)
downloadenlightenment-fe34f459950abcde841ba0df8531d1da75f4cefe.tar.gz
Revert "mixer: try to fix a possible bug"
This reverts commit 61182d64347666f942c82e2574f9fc4c8cb45dea. accidentally pushed, does not resolve anything
-rw-r--r--src/modules/mixer/lib/backends/pulseaudio/pulse.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/modules/mixer/lib/backends/pulseaudio/pulse.c b/src/modules/mixer/lib/backends/pulseaudio/pulse.c
index c6b8bfa50..f88273477 100644
--- a/src/modules/mixer/lib/backends/pulseaudio/pulse.c
+++ b/src/modules/mixer/lib/backends/pulseaudio/pulse.c
@@ -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;