summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Dröge <slomo@circular-chaos.org>2008-12-08 18:31:00 +0000
committerSebastian Dröge <slomo@circular-chaos.org>2008-12-08 18:31:00 +0000
commit169567f3efd1612866426a9514603eb9dc8c377a (patch)
tree6a5c11dd3d28c5d393d49d12d8178a6f926a0870
parent939a1da72c97b261b023cd219adf834e54c80a80 (diff)
ext/dv/gstdvdemux.c: Forward all events upstream unless it's something we really don't handle. This fixes latency con...
Original commit message from CVS: * ext/dv/gstdvdemux.c: (gst_dvdemux_handle_src_event): Forward all events upstream unless it's something we really don't handle. This fixes latency configuration of pipelines.
-rw-r--r--ChangeLog6
-rw-r--r--ext/dv/gstdvdemux.c7
2 files changed, 11 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 0fef8302..83ff6118 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
2008-12-08 Sebastian Dröge <sebastian.droege@collabora.co.uk>
+ * ext/dv/gstdvdemux.c: (gst_dvdemux_handle_src_event):
+ Forward all events upstream unless it's something we really
+ don't handle. This fixes latency configuration of pipelines.
+
+2008-12-08 Sebastian Dröge <sebastian.droege@collabora.co.uk>
+
* ext/dv/gstdv.c: (plugin_init):
* ext/dv/gstdvdec.c: (gst_dvdec_class_init):
* ext/dv/gstdvdemux.c: (gst_dvdemux_class_init):
diff --git a/ext/dv/gstdvdemux.c b/ext/dv/gstdvdemux.c
index 0233c1f6..916a34d5 100644
--- a/ext/dv/gstdvdemux.c
+++ b/ext/dv/gstdvdemux.c
@@ -1166,11 +1166,14 @@ gst_dvdemux_handle_src_event (GstPad * pad, GstEvent * event)
/* we can't really (yet) do QoS */
case GST_EVENT_NAVIGATION:
/* no navigation either... */
- default:
res = FALSE;
+ default:
+ res = gst_pad_push_event (dvdemux->sinkpad, event);
+ event = NULL;
break;
}
- gst_event_unref (event);
+ if (event)
+ gst_event_unref (event);
gst_object_unref (dvdemux);