mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 01:30:38 +00:00
xvidenc: Always return reffed caps from _getcaps
Not returning ref caps will leads to crashes and refcounting issues in upstream elements
This commit is contained in:
parent
851e9b1f8d
commit
5ebff49162
1 changed files with 1 additions and 1 deletions
|
@ -806,7 +806,7 @@ gst_xvidenc_getcaps (GstPad * pad)
|
|||
|
||||
/* If we already have caps return them */
|
||||
if (GST_PAD_CAPS (pad))
|
||||
return GST_PAD_CAPS (pad);
|
||||
return gst_caps_ref (GST_PAD_CAPS (pad));
|
||||
|
||||
xvidenc = GST_XVIDENC (gst_pad_get_parent (pad));
|
||||
if (!xvidenc)
|
||||
|
|
Loading…
Reference in a new issue