summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
authoruau <uau@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-02-21 19:08:00 +0000
committeruau <uau@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-02-21 19:08:00 +0000
commit122cd3e7068e5f0fea9a624ff308e52e91f8419d (patch)
tree249c249388570645ec01d40d8eb51905405073d7 /mplayer.c
parent00b3c781965e920f9672b7568d65acd44a47c84f (diff)
downloadmpv-122cd3e7068e5f0fea9a624ff308e52e91f8419d.tar.bz2
mpv-122cd3e7068e5f0fea9a624ff308e52e91f8419d.tar.xz
Add missing "if (use_gui)" before some GUI calls
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22303 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mplayer.c')
-rw-r--r--mplayer.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mplayer.c b/mplayer.c
index 87eb8627c9..8d7d1b6636 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -564,7 +564,7 @@ void uninit_player(unsigned int mask){
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 @@ int build_afilter_chain(sh_audio_t *sh_audio, ao_data_t *ao_data)
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 @@ int build_afilter_chain(sh_audio_t *sh_audio, ao_data_t *ao_data)
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;
}