mirror of https://github.com/mpv-player/mpv
segfault fix
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12464 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
616ae6dc6c
commit
35439875eb
|
@ -138,7 +138,10 @@ int demux_open_lavf(demuxer_t *demuxer){
|
|||
|
||||
register_protocol(&mp_protocol);
|
||||
|
||||
strncpy(mp_filename + 3, demuxer->stream->url, sizeof(mp_filename)-3);
|
||||
if(demuxer->stream->url)
|
||||
strncpy(mp_filename + 3, demuxer->stream->url, sizeof(mp_filename)-3);
|
||||
else
|
||||
strncpy(mp_filename + 3, "foobar.dummy", sizeof(mp_filename)-3);
|
||||
|
||||
url_fopen(&priv->pb, mp_filename, URL_RDONLY);
|
||||
|
||||
|
|
Loading…
Reference in New Issue