Commit f768dfd9 authored by Andoni Morales Alastruey's avatar Andoni Morales Alastruey Committed by Tim-Philipp Müller

tsdemux: fix potential crash dereferencing NULL program pointer

https://bugzilla.gnome.org/show_bug.cgi?id=686358
parent a931d5ce
......@@ -1499,6 +1499,12 @@ gst_ts_demux_push_pending_data (GstTSDemux * demux, TSDemuxStream * stream)
goto beach;
}
if (G_UNLIKELY (demux->program == NULL)) {
GST_LOG_OBJECT (demux, "No program");
g_free (stream->data);
goto beach;
}
if (G_UNLIKELY (stream->need_newsegment))
calculate_and_push_newsegment (demux, stream);
......
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