ext/dv/gstdvdemux.c: Forward all events upstream unless it's something we really...
authorSebastian Dröge <slomo@circular-chaos.org>
Mon, 8 Dec 2008 18:31:00 +0000 (18:31 +0000)
committerSebastian Dröge <slomo@circular-chaos.org>
Mon, 8 Dec 2008 18:31:00 +0000 (18:31 +0000)
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.

ChangeLog
ext/dv/gstdvdemux.c

index 0fef8302b0191ba93d7c07dc421473695d06f8ff..83ff61187d2dcca4a08c9b63b8d3ef2028899888 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+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):
index 0233c1f6d7edd127de8d8f7d5fb6291db8173553..916a34d55596fc8ac4807e8108c18cd478ab12d8 100644 (file)
@@ -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);