summaryrefslogtreecommitdiffstats
path: root/stream/stream_file.c
diff options
context:
space:
mode:
Diffstat (limited to 'stream/stream_file.c')
-rw-r--r--stream/stream_file.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/stream/stream_file.c b/stream/stream_file.c
index 93a209ae38..9b21d80d04 100644
--- a/stream/stream_file.c
+++ b/stream/stream_file.c
@@ -139,15 +139,11 @@ static int open_f(stream_t *stream,int mode, void* opts, int* file_format) {
#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);