Commit b00f8a5b authored by Gavin Stark's avatar Gavin Stark Committed by Sebastian Dröge
Browse files

xvimagesink: Use gst_caps_can_intersect() instead of gst_caps_intersect()

Fixes a memory leak and bug #636827.
parent ea7349e4
......@@ -2089,7 +2089,7 @@ gst_xvimagesink_setcaps (GstBaseSink * bsink, GstCaps * caps)
"In setcaps. Possible caps %" GST_PTR_FORMAT ", setting 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;
structure = gst_caps_get_structure (caps, 0);
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