[Mplayer-cvslog] CVS: main mplayer.c,1.727,1.728
Sascha Sommer CVS
faust3 at mplayerhq.hu
Mon Sep 22 13:31:53 CEST 2003
Update of /cvsroot/mplayer/main
In directory mail:/var/tmp.root/cvs-serv3730
Modified Files:
mplayer.c
Log Message:
add a read function for slave mode on mingw
Index: mplayer.c
===================================================================
RCS file: /cvsroot/mplayer/main/mplayer.c,v
retrieving revision 1.727
retrieving revision 1.728
diff -u -r1.727 -r1.728
--- mplayer.c 21 Sep 2003 14:21:11 -0000 1.727
+++ mplayer.c 22 Sep 2003 11:31:27 -0000 1.728
@@ -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 @@
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);
More information about the MPlayer-cvslog
mailing list