gst/matroska/matroska-demux.c: Forward unknown events upstream.
authorWim Taymans <wim.taymans@gmail.com>
Mon, 27 Oct 2008 10:35:07 +0000 (10:35 +0000)
committerWim Taymans <wim.taymans@gmail.com>
Mon, 27 Oct 2008 10:35:07 +0000 (10:35 +0000)
Original commit message from CVS:
* gst/matroska/matroska-demux.c:
(gst_matroska_demux_handle_src_event):
Forward unknown events upstream.

ChangeLog
gst/matroska/matroska-demux.c

index 3f2ac97..3e1455b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2008-10-27  Wim Taymans  <wim.taymans@collabora.co.uk>
 
+       * gst/matroska/matroska-demux.c:
+       (gst_matroska_demux_handle_src_event):
+       Forward unknown events upstream.
+
+2008-10-27  Wim Taymans  <wim.taymans@collabora.co.uk>
+
        * tests/check/elements/icydemux.c: (icydemux_found_pad):
        Add some refcount check
 
index f8b1f39..a7c14e7 100644 (file)
@@ -2230,22 +2230,23 @@ gst_matroska_demux_handle_src_event (GstPad * pad, GstEvent * event)
   switch (GST_EVENT_TYPE (event)) {
     case GST_EVENT_SEEK:
       res = gst_matroska_demux_handle_seek_event (demux, pad, event);
+      gst_event_unref (event);
       break;
 
       /* events we don't need to handle */
     case GST_EVENT_NAVIGATION:
     case GST_EVENT_QOS:
+      gst_event_unref (event);
       res = FALSE;
       break;
 
+    case GST_EVENT_LATENCY:
     default:
-      GST_WARNING ("Unhandled %s event, dropped", GST_EVENT_TYPE_NAME (event));
-      res = FALSE;
+      res = gst_pad_push_event (demux->sinkpad, event);
       break;
   }
 
   gst_object_unref (demux);
-  gst_event_unref (event);
 
   return res;
 }