rsvgdec: avoid reffing the element in chain

This commit is contained in:
Stefan Kost 2010-11-08 16:00:21 +02:00
parent 9ddeba2407
commit fedcff79d7

View file

@ -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;
}