raster pushed a commit to branch master.

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

commit 3b359b4ea703e991322caa2ec6ae29bc85f98836
Author: Carsten Haitzler (Rasterman) <ras...@rasterman.com>
Date:   Wed Jan 16 16:40:20 2019 +0000

    mixer - put back parent process hunting for things like spotify
---
 src/modules/mixer/e_mod_main.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/modules/mixer/e_mod_main.c b/src/modules/mixer/e_mod_main.c
index fa0397505..32d3715b2 100644
--- a/src/modules/mixer/e_mod_main.c
+++ b/src/modules/mixer/e_mod_main.c
@@ -929,14 +929,15 @@ _sink_input_event(int type, Emix_Sink_Input *input)
    E_Client *ec;
    E_Client_Volume_Sink *sink;
    pid_t pid;
+   Eina_Bool found = EINA_FALSE;
 
    switch (type)
      {
       case EMIX_SINK_INPUT_ADDED_EVENT:
          pid = input->pid;
-        if ((pid <= 1) || (pid == getpid())) return;
-        else
+         for (;;)
            {
+              if ((pid <= 1) || (pid == getpid())) return;
               clients = e_client_focus_stack_get();
               EINA_LIST_FOREACH(clients, l, ec)
                 {
@@ -952,8 +953,10 @@ _sink_input_event(int type, Emix_Sink_Input *input)
                                                         input);
                         e_client_volume_sink_append(ec, sink);
                         _client_sinks = eina_list_append(_client_sinks, sink);
+                        found = EINA_TRUE;
                      }
                 }
+              if (found) break;
               pid = _get_ppid(pid);
            }
          break;

-- 


Reply via email to