changeset 33481:de7945cbcfa0

Fix compilation without gui.
author cehoyos
date Tue, 07 Jun 2011 00:08:06 +0000
parents e413b573e4ec
children 7e41f14e7778
files mplayer.c
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
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;