[gst-cvs] gst-plugins-bad: baseparse: fix seek event ref handling
Mark Nauwelaerts
mnauw at kemper.freedesktop.org
Tue Jun 15 06:43:34 PDT 2010
Module: gst-plugins-bad
Branch: master
Commit: 112df6cc0ec3a0408eecefa4c83c0c87eeaedc50
URL: http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/commit/?id=112df6cc0ec3a0408eecefa4c83c0c87eeaedc50
Author: Mark Nauwelaerts <mark.nauwelaerts at collabora.co.uk>
Date: Tue Jun 15 15:34:05 2010 +0200
baseparse: fix seek event ref handling
---
gst/audioparsers/gstbaseparse.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/gst/audioparsers/gstbaseparse.c b/gst/audioparsers/gstbaseparse.c
index f37b0bb..b2f7f2a 100644
--- a/gst/audioparsers/gstbaseparse.c
+++ b/gst/audioparsers/gstbaseparse.c
@@ -696,6 +696,8 @@ gst_base_parse_src_event (GstPad * pad, GstEvent * event)
if (!handled)
ret = gst_pad_event_default (pad, event);
+ else
+ gst_event_unref (event);
gst_object_unref (parse);
return ret;
@@ -724,7 +726,6 @@ gst_base_parse_src_eventfunc (GstBaseParse * parse, GstEvent * event)
{
if (bclass->is_seekable (parse)) {
handled = gst_base_parse_handle_seek (parse, event);
- gst_event_unref (event);
}
break;
}
@@ -2066,7 +2067,6 @@ gst_base_parse_handle_seek (GstBaseParse * parse, GstEvent * event)
} else {
gst_event_ref (event);
if (gst_pad_push_event (parse->sinkpad, event)) {
- gst_event_unref (event);
return TRUE;
}
}
More information about the Gstreamer-commits
mailing list