summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
authoralex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-03-15 16:13:27 +0000
committeralex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-03-15 16:13:27 +0000
commita750501c9f675df88b35ab0c9cdeb066070ba675 (patch)
tree8fb67f5e6ff61ad8532ba01e4fc30723ee448f39 /mplayer.c
parent723ea9409bd2e82edfde4eb7c760839e0d4adff7 (diff)
downloadmpv-a750501c9f675df88b35ab0c9cdeb066070ba675.tar.bz2
mpv-a750501c9f675df88b35ab0c9cdeb066070ba675.tar.xz
added some ifdef's to make possible to compile with --disable-new-input --enable-gui
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5092 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mplayer.c')
-rw-r--r--mplayer.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/mplayer.c b/mplayer.c
index 9f10a63b0f..55673f9348 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -763,10 +763,14 @@ if(!use_stdin && !slave_mode){
#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: