diff options
author | Wim Taymans <wim.taymans@collabora.co.uk> | 2012-02-15 13:02:06 +0100 |
---|---|---|
committer | Wim Taymans <wim.taymans@collabora.co.uk> | 2012-02-15 13:02:06 +0100 |
commit | 16810321ee286fbfec11fa1eec288552614c2abe (patch) | |
tree | 89260849bad0e73a5d5b05fb1987ba9c5b5d4c8b | |
parent | f9c99b47136feb4740a82a244651001a7719e2bc (diff) | |
download | gstreamer-plugins-bad-16810321ee286fbfec11fa1eec288552614c2abe.tar.gz |
videoparsers: don't leak event
Unref the event when we don't chain up to the parent
-rw-r--r-- | gst/videoparsers/gsth264parse.c | 1 | ||||
-rw-r--r-- | gst/videoparsers/gstmpeg4videoparse.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/gst/videoparsers/gsth264parse.c b/gst/videoparsers/gsth264parse.c index 7519e97c0..1723826f6 100644 --- a/gst/videoparsers/gsth264parse.c +++ b/gst/videoparsers/gsth264parse.c @@ -1806,6 +1806,7 @@ gst_h264_parse_event (GstBaseParse * parse, GstEvent * event) h264parse->pending_key_unit_ts = running_time; gst_event_replace (&h264parse->force_key_unit_event, event); } + gst_event_unref (event); res = TRUE; } else { res = GST_BASE_PARSE_CLASS (parent_class)->event (parse, event); diff --git a/gst/videoparsers/gstmpeg4videoparse.c b/gst/videoparsers/gstmpeg4videoparse.c index 5f9bb027b..aae6a8a4a 100644 --- a/gst/videoparsers/gstmpeg4videoparse.c +++ b/gst/videoparsers/gstmpeg4videoparse.c @@ -837,6 +837,7 @@ gst_mpeg4vparse_event (GstBaseParse * parse, GstEvent * event) mp4vparse->pending_key_unit_ts = running_time; gst_event_replace (&mp4vparse->force_key_unit_event, event); } + gst_event_unref (event); res = TRUE; } else { res = GST_BASE_PARSE_CLASS (parent_class)->event (parse, event); |