summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
Diffstat (limited to 'mplayer.c')
-rw-r--r--mplayer.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mplayer.c b/mplayer.c
index 6d4cabead1..5cccc59ef6 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -2694,10 +2694,12 @@ int gui_no_filename=0;
use_gui=0;
}
#else
+#ifndef WIN32
if(use_gui && !vo_init()){
mp_msg(MSGT_CPLAYER,MSGL_WARN,MSGTR_GuiNeedsX);
use_gui=0;
}
+#endif
if (use_gui && playtree_iter){
char cwd[PATH_MAX+2];
// Free Playtree and Playtree-Iter as it's not used by the GUI.