diff --git a/gst-libs/gst/mpegts/gstmpegtssection.c b/gst-libs/gst/mpegts/gstmpegtssection.c index c92752bb55..68a5da570c 100644 --- a/gst-libs/gst/mpegts/gstmpegtssection.c +++ b/gst-libs/gst/mpegts/gstmpegtssection.c @@ -402,6 +402,9 @@ gst_event_parse_mpegts_section (GstEvent * event) structure = gst_event_get_structure (event); + if (!structure) + return NULL; + if (!gst_structure_id_get (structure, QUARK_SECTION, MPEG_TYPE_TS_SECTION, §ion, NULL)) return NULL;