changeset 5091:cf9c0a6f76d5

added some ifdef's to make possible to compile with --disable-new-input --enable-gui
author alex
date Fri, 15 Mar 2002 16:13:27 +0000
parents 140e64b969e2
children 3cc4aaa3724b
files mplayer.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mplayer.c	Fri Mar 15 16:10:29 2002 +0000
+++ b/mplayer.c	Fri Mar 15 16:13:27 2002 +0000
@@ -763,10 +763,14 @@
 #endif
 
       while(guiIntfStruct.Playing!=1){
+#ifdef HAVE_NEW_INPUT
         mp_cmd_t* cmd;                                                                                   
+#endif
 	usleep(20000);
 	guiEventHandling();
+#ifdef HAVE_NEW_INPUT
 	if ( (cmd = mp_input_get_cmd(0,0)) != NULL) guiGetEvent( guiIEvent,(char *)cmd->id );
+#endif
       }
 
 play_dvd: