1
0
mirror of https://github.com/mpv-player/mpv synced 2025-02-17 21:27:08 +00:00

fixed stream errors on some cygwin installations

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8713 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
faust3 2003-01-02 10:53:22 +00:00
parent b1cdf7ba57
commit 7b374f9fca

View File

@ -503,7 +503,11 @@ if(dvd_title){
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; }
}