[vlc-commits] demux_chained: fix stream leak
Thomas Guillem
git at videolan.org
Wed Oct 26 18:33:16 CEST 2016
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Wed Oct 26 18:29:55 2016 +0200| [a3f0f2018793012972d89e762d6f6fb9f1b9a01b] | committer: Thomas Guillem
demux_chained: fix stream leak
This leak could happen when the stream_fifo was closed during the creation of
the demux from the demux_chained thread.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a3f0f2018793012972d89e762d6f6fb9f1b9a01b
---
src/input/demux_chained.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/input/demux_chained.c b/src/input/demux_chained.c
index c650ac8..65ad7ee 100644
--- a/src/input/demux_chained.c
+++ b/src/input/demux_chained.c
@@ -56,7 +56,10 @@ static void *vlc_demux_chained_Thread(void *data)
demux_t *demux = demux_NewAdvanced(dc->fifo, NULL, "", dc->name, "",
dc->fifo, dc->out, false);
if (demux == NULL)
+ {
+ vlc_stream_Delete(dc->fifo);
return NULL;
+ }
/* Stream FIFO cannot apply DVB filters.
* Get all programs and let the E/S output sort them out. */
More information about the vlc-commits
mailing list