[MPlayer-cvslog] r29346 - trunk/stream/stream_file.c
diego
subversion at mplayerhq.hu
Wed Jun 3 16:06:10 CEST 2009
Author: diego
Date: Wed Jun 3 16:06:10 2009
New Revision: 29346
Log:
Files should be opened in binary mode on OS/2.
patch by KO Myung-Hun, komh chollian net
Modified:
trunk/stream/stream_file.c
Modified: trunk/stream/stream_file.c
==============================================================================
--- trunk/stream/stream_file.c Wed Jun 3 15:42:11 2009 (r29345)
+++ trunk/stream/stream_file.c Wed Jun 3 16:06:10 2009 (r29346)
@@ -119,7 +119,7 @@ static int open_f(stream_t *stream,int m
filename++;
#endif
-#if defined(__CYGWIN__)|| defined(__MINGW32__)
+#if defined(__CYGWIN__)|| defined(__MINGW32__) || defined(__OS2__)
m |= O_BINARY;
#endif
@@ -128,13 +128,13 @@ static int open_f(stream_t *stream,int m
// read from stdin
mp_msg(MSGT_OPEN,MSGL_INFO,MSGTR_ReadSTDIN);
f=0; // 0=stdin
-#ifdef __MINGW32__
+#if defined(__MINGW32__) || defined(__OS2__)
setmode(fileno(stdin),O_BINARY);
#endif
} else {
mp_msg(MSGT_OPEN,MSGL_INFO,"Writing to stdout\n");
f=1;
-#ifdef __MINGW32__
+#if defined(__MINGW32__) || defined(__OS2__)
setmode(fileno(stdout),O_BINARY);
#endif
}
More information about the MPlayer-cvslog
mailing list