summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
authorfaust3 <faust3@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-09-22 11:31:51 +0000
committerfaust3 <faust3@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-09-22 11:31:51 +0000
commite27e245ffe2cd6da034e8bbf2703351b7738df57 (patch)
tree9d71bc1f94b74e886d567733213c4574627f9474 /mplayer.c
parent4cafcfff45e215fa29537fedd4ca85006895882b (diff)
downloadmpv-e27e245ffe2cd6da034e8bbf2703351b7738df57.tar.bz2
mpv-e27e245ffe2cd6da034e8bbf2703351b7738df57.tar.xz
add a read function for slave mode on mingw
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10929 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mplayer.c')
-rw-r--r--mplayer.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/mplayer.c b/mplayer.c
index 5dd2b8ad8a..93b3733211 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -13,6 +13,7 @@
#define SIGQUIT 3 /* quit */
#define SIGKILL 9 /* kill (cannot be caught or ignored) */
#define SIGBUS 10 /* bus error */
+extern int mp_input_win32_slave_cmd_func(int fd,char* dest,int size);
#endif
#include <sys/time.h>
@@ -1121,7 +1122,11 @@ if(keyb_fifo_get > 0)
mp_input_add_key_fd(-1,0,mplayer_get_key,NULL);
#endif
if(slave_mode)
+#ifndef __MINGW32__
mp_input_add_cmd_fd(0,1,NULL,NULL);
+#else
+ mp_input_add_cmd_fd(0,0,mp_input_win32_slave_cmd_func,NULL);
+#endif
else if(!use_stdin)
#ifndef HAVE_NO_POSIX_SELECT
mp_input_add_key_fd(0,1,NULL,NULL);