Commit b71d9b17 authored by Thiago Santos's avatar Thiago Santos

deinterleave: use the caps query filter

It was being ignored and would lead to wrong results if the
element doing the query would rely on the intersection being made.
parent 74c05502
......@@ -567,6 +567,14 @@ gst_deinterleave_getcaps (GstPad * pad, GstObject * parent, GstCaps * filter)
if (filter) {
GstCaps *aux;
aux = gst_caps_intersect (ret, filter);
gst_caps_unref (ret);
ret = aux;
GST_DEBUG_OBJECT (pad, "Intersected caps to %" GST_PTR_FORMAT, ret);
return ret;
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