From 8ae866e5c6ea204034e9fb371a66db2d34dbabec Mon Sep 17 00:00:00 2001 From: Stefan Kost Date: Mon, 12 Nov 2007 17:06:32 +0000 Subject: gst/: Sync _handle_src_event() with oggdemux. In avidemux also ref the element when we should, but not when we its no... Original commit message from CVS: * gst/avi/gstavidemux.c: * gst/qtdemux/qtdemux.c: Sync _handle_src_event() with oggdemux. In avidemux also ref the element when we should, but not when we its not needed. --- gst/qtdemux/qtdemux.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'gst/qtdemux/qtdemux.c') diff --git a/gst/qtdemux/qtdemux.c b/gst/qtdemux/qtdemux.c index 48500dfa..169862f6 100644 --- a/gst/qtdemux/qtdemux.c +++ b/gst/qtdemux/qtdemux.c @@ -842,14 +842,13 @@ gst_qtdemux_handle_src_event (GstPad * pad, GstEvent * event) GST_DEBUG_OBJECT (qtdemux, "cannot seek in streaming mode"); res = FALSE; } + gst_object_unref (qtdemux); break; default: - res = FALSE; + res = gst_pad_event_default (pad, event); break; } - gst_object_unref (qtdemux); - gst_event_unref (event); return res; -- cgit