From: Stefan Kost Date: Mon, 8 Nov 2010 14:00:21 +0000 (+0200) Subject: rsvgdec: avoid reffing the element in chain X-Git-Tag: 1.19.3~507^2~16202 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fedcff79d723fdc6441dd93f23917e3ecdc2ffd3;p=platform%2Fupstream%2Fgstreamer.git rsvgdec: avoid reffing the element in chain --- diff --git a/ext/rsvg/gstrsvgdec.c b/ext/rsvg/gstrsvgdec.c index 032ea54..b885d15 100644 --- a/ext/rsvg/gstrsvgdec.c +++ b/ext/rsvg/gstrsvgdec.c @@ -323,7 +323,7 @@ gst_rsvg_decode_image (GstRsvgDec * rsvg, const guint8 * data, guint size, static GstFlowReturn gst_rsvg_dec_chain (GstPad * pad, GstBuffer * buffer) { - GstRsvgDec *rsvg = GST_RSVG_DEC (gst_pad_get_parent (pad)); + GstRsvgDec *rsvg = GST_RSVG_DEC (GST_PAD_PARENT (pad)); gboolean completed = FALSE; const guint8 *data; guint size; @@ -411,8 +411,6 @@ gst_rsvg_dec_chain (GstPad * pad, GstBuffer * buffer) } } - gst_object_unref (rsvg); - return GST_FLOW_OK; }