Ticket #1102: FileNotFound_to_CantOpenFile.patch
| File FileNotFound_to_CantOpenFile.patch, 646 bytes (added by , 18 years ago) |
|---|
-
stream/stream_file.c
6 6 #include <sys/stat.h> 7 7 #include <fcntl.h> 8 8 #include <unistd.h> 9 #include <string.h> 10 #include <errno.h> 9 11 10 12 #include "mp_msg.h" 11 13 #include "stream.h" … … 145 147 #endif 146 148 f=open(filename,m, openmode); 147 149 if(f<0) { 148 mp_msg(MSGT_OPEN,MSGL_ERR,MSGTR_ FileNotFound,filename);150 mp_msg(MSGT_OPEN,MSGL_ERR,MSGTR_CantOpenFileError,filename,strerror(errno)); 149 151 m_struct_free(&stream_opts,opts); 150 152 return STREAM_ERROR; 151 153 }
