From 0951e00dc05236b54a03e25c2c331bf1be332dc5 Mon Sep 17 00:00:00 2001 From: Jan Schmidt Date: Tue, 17 Jun 2008 01:08:14 +0000 Subject: configure.ac: Check for libdvdnav to build resindvd. Original commit message from CVS: * configure.ac: Check for libdvdnav to build resindvd. * ext/Makefile.am: * ext/resindvd/Makefile.am: * ext/resindvd/gstmpegdefs.h: * ext/resindvd/gstmpegdemux.c: * ext/resindvd/gstmpegdemux.h: * ext/resindvd/gstmpegdesc.c: * ext/resindvd/gstmpegdesc.h: * ext/resindvd/gstpesfilter.c: * ext/resindvd/gstpesfilter.h: * ext/resindvd/plugin.c: * ext/resindvd/resin-play: * ext/resindvd/resindvdbin.c: * ext/resindvd/resindvdbin.h: * ext/resindvd/resindvdsrc.c: * ext/resindvd/resindvdsrc.h: * ext/resindvd/rsnaudiomunge.c: * ext/resindvd/rsnaudiomunge.h: * ext/resindvd/rsnbasesrc.c: * ext/resindvd/rsnbasesrc.h: * ext/resindvd/rsnpushsrc.c: * ext/resindvd/rsnpushsrc.h: * ext/resindvd/rsnstreamselector.c: * ext/resindvd/rsnstreamselector.h: First commit of DVD-Video playback component 'rsndvdbin' and helper elements. Use --enable-experimental for now, but feel free to give it a try using the resin-play script. * gst/dvdspu/gstdvdspu.c: Add some extra guards for malformed events. --- gst/dvdspu/gstdvdspu.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'gst/dvdspu/gstdvdspu.c') 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); -- cgit v1.2.1