changeset 22285:5d12a6e96930

Add missing "if (use_gui)" before some GUI calls
author uau
date Wed, 21 Feb 2007 19:08:00 +0000
parents 83366c8e1928
children a7e5b99ac083
files mplayer.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/mplayer.c	Wed Feb 21 18:28:48 2007 +0000
+++ b/mplayer.c	Wed Feb 21 19:08:00 2007 +0000
@@ -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;
 }