summaryrefslogtreecommitdiffstats
path: root/gst/matroska
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@gmail.com>2008-10-27 10:35:07 +0000
committerWim Taymans <wim.taymans@gmail.com>2008-10-27 10:35:07 +0000
commit99eb36eac009f0947cf8d56bf49be3076595588f (patch)
tree26f94082c3d2d27d28a2240de6e082a6a871669e /gst/matroska
parent2e24acaa5bb92ab3833b789c34796d9c1ef870ce (diff)
gst/matroska/matroska-demux.c: Forward unknown events upstream.
Original commit message from CVS: * gst/matroska/matroska-demux.c: (gst_matroska_demux_handle_src_event): Forward unknown events upstream.
Diffstat (limited to 'gst/matroska')
-rw-r--r--gst/matroska/matroska-demux.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/gst/matroska/matroska-demux.c b/gst/matroska/matroska-demux.c
index f8b1f397..a7c14e7c 100644
--- a/gst/matroska/matroska-demux.c
+++ b/gst/matroska/matroska-demux.c
@@ -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;
}