From f9c0367619d7605d7f379343745151bf55a1fda1 Mon Sep 17 00:00:00 2001 From: Mathieu Duponchelle Date: Wed, 22 May 2019 21:44:22 +0200 Subject: [PATCH] mpegtssection: events don't necessarily have a structure --- gst-libs/gst/mpegts/gstmpegtssection.c | 3 +++ 1 file changed, 3 insertions(+) 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;