summaryrefslogtreecommitdiffstats
path: root/gst/dvdspu/gstdvdspu.c
diff options
context:
space:
mode:
Diffstat (limited to 'gst/dvdspu/gstdvdspu.c')
-rw-r--r--gst/dvdspu/gstdvdspu.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/gst/dvdspu/gstdvdspu.c b/gst/dvdspu/gstdvdspu.c
index c16743bd..680d9101 100644
--- a/gst/dvdspu/gstdvdspu.c
+++ b/gst/dvdspu/gstdvdspu.c
@@ -395,12 +395,22 @@ gst_dvd_spu_video_event (GstPad * pad, GstEvent * event)
const GstStructure *structure = gst_event_get_structure (event);
const char *event_type;
+ if (structure == NULL) {
+ res = gst_pad_event_default (pad, event);
+ break;
+ }
+
if (!gst_structure_has_name (structure, "application/x-gst-dvd")) {
res = gst_pad_event_default (pad, event);
break;
}
event_type = gst_structure_get_string (structure, "event");
+ if (event_type == NULL) {
+ res = gst_pad_event_default (pad, event);
+ break;
+ }
+
GST_DEBUG_OBJECT (dvdspu,
"DVD event of type %s on video pad", event_type);