Commit fe533c99 authored by Jindrich Makovicka's avatar Jindrich Makovicka Committed by Sebastian Dröge
Browse files

textrender: Prevent double unref of caps if the caps can't be set on the srcpad

parent 99188bce
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment