[MPlayer-cvslog] r26083 - trunk/stream/stream_file.c
reimar
subversion at mplayerhq.hu
Sun Feb 24 12:21:27 CET 2008
Author: reimar
Date: Sun Feb 24 12:21:27 2008
New Revision: 26083
Log:
Avoid a pointless special-case for opening a file
Modified:
trunk/stream/stream_file.c
Modified: trunk/stream/stream_file.c
==============================================================================
--- trunk/stream/stream_file.c (original)
+++ trunk/stream/stream_file.c Sun Feb 24 12:21:27 2008
@@ -139,15 +139,11 @@ static int open_f(stream_t *stream,int m
#endif
}
} else {
- if(mode == STREAM_READ)
- f=open(filename,m);
- else {
mode_t openmode = S_IRUSR|S_IWUSR;
#ifndef __MINGW32__
openmode |= S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH;
#endif
f=open(filename,m, openmode);
- }
if(f<0) {
mp_msg(MSGT_OPEN,MSGL_ERR,MSGTR_FileNotFound,filename);
m_struct_free(&stream_opts,opts);
More information about the MPlayer-cvslog
mailing list