mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
rsvgdec: avoid reffing the element in chain
This commit is contained in:
parent
9ddeba2407
commit
fedcff79d7
1 changed files with 1 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue