0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 12:02:23 +02:00

Check that we really got a filename.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9850 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
albeu 2003-04-06 16:30:09 +00:00
parent 293e3b42b1
commit 93a1dd5f04

View File

@ -77,6 +77,12 @@ static int open_f(stream_t *stream,int mode, void* opts, int* file_format) {
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