--- mplayer/mplayer.c.ark 2011-06-06 18:25:56.733227643 +0200 +++ mplayer/mplayer.c 2011-06-06 18:27:47.183224954 +0200 @@ -4169,7 +4169,11 @@ goto_next_file: // don't jump here afte } #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;