[MPlayer-cvslog] r37040 - trunk/gui/interface.c

ib subversion at mplayerhq.hu
Sat Mar 22 20:47:44 CET 2014


Author: ib
Date: Sat Mar 22 20:47:44 2014
New Revision: 37040

Log:
Remove pointless condition.

It's always true.

As a result, relocate the variable declarations.

Modified:
   trunk/gui/interface.c

Modified: trunk/gui/interface.c
==============================================================================
--- trunk/gui/interface.c	Sat Mar 22 20:45:06 2014	(r37039)
+++ trunk/gui/interface.c	Sat Mar 22 20:47:44 2014	(r37040)
@@ -317,6 +317,7 @@ static void add_vf(char *str)
  */
 int gui(int what, void *data)
 {
+    static float last_balance = 50.0f;
 #ifdef CONFIG_DVDREAD
     dvd_priv_t *dvd;
 #endif
@@ -324,6 +325,7 @@ int gui(int what, void *data)
     stream_t *stream = NULL;
     sh_audio_t *sh_audio;
     mixer_t *mixer;
+    float l, r, b;
     plItem *next = NULL;
 
     switch (what) {
@@ -738,10 +740,6 @@ int gui(int what, void *data)
 
         mixer = data;
 
-        if (mixer) {
-            float l, r, b;
-            static float last_balance = 50.0f;
-
             mixer_getvolume(mixer, &l, &r);
             guiInfo.Volume = FFMAX(l, r);
 
@@ -752,7 +750,6 @@ int gui(int what, void *data)
                 uiEvent(ivSetVolume, guiInfo.Volume);
                 last_balance = guiInfo.Balance;
             }
-        }
 
         break;
 


More information about the MPlayer-cvslog mailing list