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:
parent
293e3b42b1
commit
93a1dd5f04
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user