summaryrefslogtreecommitdiffstats
path: root/gst
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian.droege@collabora.co.uk>2009-07-14 14:07:44 +0200
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2009-07-14 14:10:03 +0200
commit493535dd8990d129685f925ef3bd8f92965741b4 (patch)
tree205873b24cc9da1e23441225a637663c26238f75 /gst
parentb3232301da7f7dbab34f1953c8e79177e70c2347 (diff)
downloadgst-plugins-bad-493535dd8990d129685f925ef3bd8f92965741b4.tar.gz
gst-plugins-bad-493535dd8990d129685f925ef3bd8f92965741b4.tar.bz2
gst-plugins-bad-493535dd8990d129685f925ef3bd8f92965741b4.zip
baseparse: Fix seek event leaking
Diffstat (limited to 'gst')
-rw-r--r--gst/aacparse/gstbaseparse.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gst/aacparse/gstbaseparse.c b/gst/aacparse/gstbaseparse.c
index 026b1341..fd2dfe45 100644
--- a/gst/aacparse/gstbaseparse.c
+++ b/gst/aacparse/gstbaseparse.c
@@ -1575,12 +1575,13 @@ gst_base_parse_handle_seek (GstBaseParse * parse, GstEvent * event)
* it directly or fail. For TIME, try upstream, but do it ourselves if
* it fails upstream */
if (format != GST_FORMAT_TIME) {
- gst_event_ref (event);
return gst_pad_push_event (parse->sinkpad, event);
} else {
gst_event_ref (event);
- if (gst_pad_push_event (parse->sinkpad, event))
+ if (gst_pad_push_event (parse->sinkpad, event)) {
+ gst_event_unref (event);
return TRUE;
+ }
}
/* get flush flag */