[Mplayer-cvslog] CVS: main/libmpdemux stream_file.c,1.2,1.3
Alban Bedel CVS
albeu at mplayerhq.hu
Sun Apr 6 18:30:12 CEST 2003
Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var/tmp.root/cvs-serv4316/libmpdemux
Modified Files:
stream_file.c
Log Message:
Check that we really got a filename.
Index: stream_file.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/stream_file.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- stream_file.c 4 Apr 2003 15:41:47 -0000 1.2
+++ stream_file.c 6 Apr 2003 16:30:09 -0000 1.3
@@ -77,6 +77,12 @@
return STREAM_UNSUPORTED;
}
+ if(!p->filename) {
+ mp_msg(MSGT_OPEN,MSGL_ERR, "[file] No filename\n");
+ m_struct_free(&stream_opts,opts);
+ return STREAM_ERROR;
+ }
+
#if defined(__CYGWIN__)|| defined(__MINGW32__)
m |= O_BINARY;
#endif
More information about the MPlayer-cvslog
mailing list