diff gui/interface.c @ 36454:9a28d5c4320a

Provide GUI_SET_MIXER call with argument. This follows the other GUI_SET calls, all of which are having respective arguments.
author ib
date Tue, 17 Dec 2013 22:12:19 +0000
parents eb6cdd6b9b86
children c9fb71a139bb
line wrap: on
line diff
--- a/gui/interface.c	Tue Dec 17 18:46:48 2013 +0000
+++ b/gui/interface.c	Tue Dec 17 22:12:19 2013 +0000
@@ -310,7 +310,7 @@
     dvd_priv_t *dvd;
 #endif
     int msg, state;
-    mixer_t *mixer = NULL;
+    mixer_t *mixer;
     plItem *next   = NULL;
 
     switch (what) {
@@ -696,7 +696,7 @@
             guiInfo.VideoHeight = 0;
         }
 
-        gui(GUI_SET_MIXER, 0);
+        gui(GUI_SET_MIXER, mpctx_get_mixer(guiInfo.mpcontext));
 
         if (gtkEnableAudioEqualizer) {
             equalizer_t eq;
@@ -730,8 +730,7 @@
 
     case GUI_SET_MIXER:
 
-        if (guiInfo.mpcontext)
-            mixer = mpctx_get_mixer(guiInfo.mpcontext);
+        mixer = data;
 
         if (mixer) {
             float l, r, b;