From 741ab3951097af079ca36796ff9dc7ef95496701 Mon Sep 17 00:00:00 2001
From: wm4 <wm4@nowhere>
Date: Thu, 1 Nov 2012 01:25:11 +0100
Subject: [PATCH] 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.
---
 stream/stream.c | 1 +
 1 file changed, 1 insertion(+)

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;
       }
     }