mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-12 18:35:35 +00:00
textrender: Prevent double unref of caps if the caps can't be set on the srcpad
This commit is contained in:
parent
99188bce77
commit
fe533c9995
1 changed files with 0 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue