[0.11] gstreamer: basetransform: avoid caps leak

Wim Taymans wtay at kemper.freedesktop.org
Fri Jan 27 03:10:29 PST 2012


Module: gstreamer
Branch: 0.11
Commit: ae12e4f645fd085490bc9d64133adab1cd5e400c
URL:    http://cgit.freedesktop.org/gstreamer/gstreamer/commit/?id=ae12e4f645fd085490bc9d64133adab1cd5e400c

Author: Wim Taymans <wim.taymans at collabora.co.uk>
Date:   Fri Jan 27 11:40:05 2012 +0100

basetransform: avoid caps leak

---

 libs/gst/base/gstbasetransform.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libs/gst/base/gstbasetransform.c b/libs/gst/base/gstbasetransform.c
index 2013a96..698ce31 100644
--- a/libs/gst/base/gstbasetransform.c
+++ b/libs/gst/base/gstbasetransform.c
@@ -692,7 +692,7 @@ gst_base_transform_query_caps (GstBaseTransform * trans, GstPad * pad,
     GST_DEBUG_OBJECT (pad, "intersected %" GST_PTR_FORMAT, temp);
     gst_caps_unref (templ);
   } else {
-    temp = gst_caps_copy (gst_pad_get_pad_template_caps (otherpad));
+    temp = gst_pad_get_pad_template_caps (otherpad);
   }
 
   /* then see what we can transform this to */



More information about the gstreamer-commits mailing list