[MPlayer-cvslog] r22303 - trunk/mplayer.c

uau subversion at mplayerhq.hu
Wed Feb 21 20:08:00 CET 2007


Author: uau
Date: Wed Feb 21 20:08:00 2007
New Revision: 22303

Modified:
   trunk/mplayer.c

Log:
Add missing "if (use_gui)" before some GUI calls


Modified: trunk/mplayer.c
==============================================================================
--- trunk/mplayer.c	(original)
+++ trunk/mplayer.c	Wed Feb 21 20:08:00 2007
@@ -564,7 +564,7 @@
     current_module="uninit_acodec";
     if(mpctx->sh_audio) uninit_audio(mpctx->sh_audio);
 #ifdef HAVE_NEW_GUI
-    guiGetEvent(guiSetAfilter, (char *)NULL);
+    if (use_gui) guiGetEvent(guiSetAfilter, (char *)NULL);
 #endif
     mpctx->sh_audio=NULL;
   }
@@ -1185,7 +1185,7 @@
   if (!sh_audio)
   {
 #ifdef HAVE_NEW_GUI
-    guiGetEvent(guiSetAfilter, (char *)NULL);
+    if (use_gui) guiGetEvent(guiSetAfilter, (char *)NULL);
 #endif
     mpctx->mixer.afilter = NULL;
     return 0;
@@ -1205,7 +1205,7 @@
            ao_data->outburst * 4, ao_data->buffersize);
   mpctx->mixer.afilter = sh_audio->afilter;
 #ifdef HAVE_NEW_GUI
-  guiGetEvent(guiSetAfilter, (char *)sh_audio->afilter);
+  if (use_gui) guiGetEvent(guiSetAfilter, (char *)sh_audio->afilter);
 #endif
   return result;
 }



More information about the MPlayer-cvslog mailing list