[0.11] gstreamer: capsfilter: Don't leak caps
Edward Hervey
bilboed at kemper.freedesktop.org
Tue Oct 11 05:04:29 PDT 2011
Module: gstreamer
Branch: 0.11
Commit: a21008ff2e1d8fe4a0e45a9d20c431eb6c80fbc8
URL: http://cgit.freedesktop.org/gstreamer/gstreamer/commit/?id=a21008ff2e1d8fe4a0e45a9d20c431eb6c80fbc8
Author: Edward Hervey <edward.hervey at collabora.co.uk>
Date: Tue Oct 11 13:53:39 2011 +0200
capsfilter: Don't leak caps
---
plugins/elements/gstcapsfilter.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/plugins/elements/gstcapsfilter.c b/plugins/elements/gstcapsfilter.c
index 16278dc..5088756 100644
--- a/plugins/elements/gstcapsfilter.c
+++ b/plugins/elements/gstcapsfilter.c
@@ -355,6 +355,8 @@ gst_capsfilter_prepare_buf (GstBaseTransform * trans, GstBuffer * input,
if (!gst_pad_has_current_caps (trans->srcpad))
gst_pad_push_event (trans->srcpad, gst_event_new_caps (out_caps));
+ else
+ gst_caps_unref (out_caps);
} else {
gchar *caps_str = gst_caps_to_string (out_caps);
More information about the gstreamer-commits
mailing list