[Mplayer-cvslog] CVS: main/libmpdemux open.c,1.65,1.66

Sascha Sommer CVS faust3 at mplayerhq.hu
Thu Jan 2 11:53:39 CET 2003


Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var/tmp.root/cvs-serv27609/libmpdemux

Modified Files:
	open.c 
Log Message:
fixed stream errors on some cygwin installations

Index: open.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/open.c,v
retrieving revision 1.65
retrieving revision 1.66
diff -u -r1.65 -r1.66
--- open.c	29 Dec 2002 22:12:20 -0000	1.65
+++ open.c	2 Jan 2003 10:53:22 -0000	1.66
@@ -503,7 +503,11 @@
 	mp_msg(MSGT_OPEN,MSGL_INFO,MSGTR_ReadSTDIN);
 	f=0; // 0=stdin
     } else {
+#ifndef __CYGWIN__
        f=open(filename,O_RDONLY);
+#else
+       f=open(filename,O_RDONLY|O_BINARY);
+#endif
        if(f<0){ mp_msg(MSGT_OPEN,MSGL_ERR,MSGTR_FileNotFound,filename);return NULL; }
     }
 



More information about the MPlayer-cvslog mailing list