mpegtssection: events don't necessarily have a structure

This commit is contained in:
Mathieu Duponchelle 2019-05-22 21:44:22 +02:00
parent 1e72aa6e85
commit f9c0367619

View file

@ -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,
&section, NULL))
return NULL;