ceolin pushed a commit to branch master.

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

commit 7c195e383cdfb1a146e7707fa721e56ac3ad7aa6
Author: Flavio Ceolin <flavio.ceo...@gmail.com>
Date:   Sun Jul 26 20:33:07 2015 -0300

    modules:mixer:pulse Update default sink
    
    Update the default sink when it changes (for instance when it is changed
    on pavucontrol).
---
 src/modules/mixer/lib/backends/pulseaudio/pulse.c | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/src/modules/mixer/lib/backends/pulseaudio/pulse.c 
b/src/modules/mixer/lib/backends/pulseaudio/pulse.c
index 382ccfc..a00ffb0 100644
--- a/src/modules/mixer/lib/backends/pulseaudio/pulse.c
+++ b/src/modules/mixer/lib/backends/pulseaudio/pulse.c
@@ -648,7 +648,15 @@ _subscribe_cb(pa_context *c, pa_subscription_event_type_t 
t,
             pa_operation_unref(o);
          }
        break;
-
+    case PA_SUBSCRIPTION_EVENT_SERVER:
+       if (!(o = pa_context_get_server_info(c, _server_info_cb,
+                                            data)))
+         {
+            ERR("pa_context_get_server_info() failed");
+            return;
+         }
+       pa_operation_unref(o);
+       break;
     default:
        WRN("Event not handled");
        break;

-- 


Reply via email to