From fe533c999531f7db4a25813c5fff7921c4a15c40 Mon Sep 17 00:00:00 2001 From: Jindrich Makovicka Date: Thu, 26 May 2011 10:42:46 +0200 Subject: [PATCH] textrender: Prevent double unref of caps if the caps can't be set on the srcpad --- ext/pango/gsttextrender.c | 1 - 1 file changed, 1 deletion(-) diff --git a/ext/pango/gsttextrender.c b/ext/pango/gsttextrender.c index c937244..eaa4742 100644 --- a/ext/pango/gsttextrender.c +++ b/ext/pango/gsttextrender.c @@ -498,7 +498,6 @@ gst_text_render_chain (GstPad * pad, GstBuffer * inbuf) } if (!gst_pad_set_caps (render->srcpad, caps)) { - gst_caps_unref (caps); GST_ELEMENT_ERROR (render, CORE, NEGOTIATION, (NULL), (NULL)); ret = GST_FLOW_ERROR; goto done; -- 2.7.4