mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
xvimagesink: Use gst_caps_can_intersect() instead of gst_caps_intersect()
Fixes a memory leak and bug #636827.
This commit is contained in:
parent
ea7349e4c7
commit
b00f8a5b36
1 changed files with 1 additions and 1 deletions
|
@ -2089,7 +2089,7 @@ gst_xvimagesink_setcaps (GstBaseSink * bsink, GstCaps * caps)
|
||||||
"In setcaps. Possible caps %" GST_PTR_FORMAT ", setting caps %"
|
"In setcaps. Possible caps %" GST_PTR_FORMAT ", setting caps %"
|
||||||
GST_PTR_FORMAT, xvimagesink->xcontext->caps, caps);
|
GST_PTR_FORMAT, xvimagesink->xcontext->caps, caps);
|
||||||
|
|
||||||
if (!gst_caps_intersect (xvimagesink->xcontext->caps, caps))
|
if (!gst_caps_can_intersect (xvimagesink->xcontext->caps, caps))
|
||||||
goto incompatible_caps;
|
goto incompatible_caps;
|
||||||
|
|
||||||
structure = gst_caps_get_structure (caps, 0);
|
structure = gst_caps_get_structure (caps, 0);
|
||||||
|
|
Loading…
Reference in a new issue