summaryrefslogtreecommitdiffstats
path: root/stream
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2012-11-01 01:25:11 +0100
committerwm4 <wm4@nowhere>2012-11-01 02:12:18 +0100
commit741ab3951097af079ca36796ff9dc7ef95496701 (patch)
tree476161b683bd7a7d2d6934d822b6871ac647c4d4 /stream
parente57802a39f0aa2027a13dead6eca192701b85b80 (diff)
downloadmpv-741ab3951097af079ca36796ff9dc7ef95496701.tar.bz2
mpv-741ab3951097af079ca36796ff9dc7ef95496701.tar.xz
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.
Diffstat (limited to 'stream')
-rw-r--r--stream/stream.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/stream/stream.c b/stream/stream.c
index 9b64deb4a9..8ae334880b 100644
--- a/stream/stream.c
+++ b/stream/stream.c
@@ -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;
}
}