diff mplayer.c @ 33481:de7945cbcfa0

Fix compilation without gui.
author cehoyos
date Tue, 07 Jun 2011 00:08:06 +0000
parents d068eac6cbf9
children e46989c7f47e
line wrap: on
line diff
--- a/mplayer.c	Mon Jun 06 15:11:24 2011 +0000
+++ b/mplayer.c	Tue Jun 07 00:08:06 2011 +0000
@@ -4169,7 +4169,11 @@
     }
 #endif
 
-    if ((use_gui && guiIntfStruct.Playing) || mpctx->playtree_iter != NULL || player_idle_mode) {
+    if (
+#ifdef CONFIG_GUI
+        (use_gui && guiIntfStruct.Playing) ||
+#endif
+                                              mpctx->playtree_iter != NULL || player_idle_mode) {
         if (!mpctx->playtree_iter)
             filename = NULL;
         mpctx->eof = 0;