diff options
author | Stefan Kost <ensonic@users.sf.net> | 2010-11-08 16:00:21 +0200 |
---|---|---|
committer | Stefan Kost <ensonic@users.sf.net> | 2010-11-08 16:02:07 +0200 |
commit | fedcff79d723fdc6441dd93f23917e3ecdc2ffd3 (patch) | |
tree | 2f2d5a62847a52b04641028536dc1f8515c30179 /ext/rsvg | |
parent | 9ddeba24077b919820c0bbff7a8870f71455ce76 (diff) | |
download | gstreamer-plugins-bad-fedcff79d723fdc6441dd93f23917e3ecdc2ffd3.tar.gz |
rsvgdec: avoid reffing the element in chain
Diffstat (limited to 'ext/rsvg')
-rw-r--r-- | ext/rsvg/gstrsvgdec.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/ext/rsvg/gstrsvgdec.c b/ext/rsvg/gstrsvgdec.c index 032ea54e9..b885d15b8 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; } |