1
0
mirror of https://github.com/mpv-player/mpv synced 2025-03-25 04:38:01 +00:00

stream: open_stream_plugin() should set error code on failure

clang analyzer complained about *ret (&r) containing garbage in
open_stream_full(). This should fix it.
This commit is contained in:
wm4 2012-11-01 01:25:11 +01:00
parent e57802a39f
commit 741ab39510

View File

@ -155,6 +155,7 @@ static stream_t *open_stream_plugin(const stream_info_t *sinfo,
if (m_option_parse(&url_opt, bstr0("stream url"), bstr0(filename), arg) < 0) {
mp_tmsg(MSGT_OPEN,MSGL_ERR, "URL parsing failed on url %s\n",filename);
m_struct_free(desc,arg);
*ret = STREAM_ERROR;
return NULL;
}
}