e - mixer - don't do anything on desklock if no mixer context exists
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>
Tue, 9 Jun 2015 02:10:35 +0000 (11:10 +0900)
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>
Tue, 9 Jun 2015 02:10:35 +0000 (11:10 +0900)
src/modules/mixer/e_mod_main.c

index 0a7c4fb..d362fd2 100644 (file)
@@ -697,6 +697,8 @@ _desklock_cb(void *data EINA_UNUSED, int type EINA_UNUSED, void *info)
 
    if (emix_config_desklock_mute_get() == EINA_FALSE)
      return ECORE_CALLBACK_PASS_ON;
+   if (!mixer_context)
+     return ECORE_CALLBACK_PASS_ON;
 
    if (ev->on)
      {