discomfitor pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=fe34f459950abcde841ba0df8531d1da75f4cefe

commit fe34f459950abcde841ba0df8531d1da75f4cefe
Author: Mike Blumenkrantz <zm...@osg.samsung.com>
Date:   Tue Apr 12 13:38:44 2016 -0400

    Revert "mixer: try to fix a possible bug"
    
    This reverts commit 61182d64347666f942c82e2574f9fc4c8cb45dea.
    
    accidentally pushed, does not resolve anything
---
 src/modules/mixer/lib/backends/pulseaudio/pulse.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/src/modules/mixer/lib/backends/pulseaudio/pulse.c 
b/src/modules/mixer/lib/backends/pulseaudio/pulse.c
index c6b8bfa..f882734 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;

-- 


Reply via email to