mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-01 13:49:58 +00:00
tsdemux: fix potential crash dereferencing NULL program pointer
https://bugzilla.gnome.org/show_bug.cgi?id=686358
This commit is contained in:
parent
a931d5ced0
commit
f768dfd925
1 changed files with 6 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue