Commit a3f0f201 authored by Thomas Guillem's avatar 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.
parent 8d587e5c
......@@ -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. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment