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.
This commit is contained in:
Thiago Santos 2015-09-30 12:30:59 -03:00
parent 74c05502f7
commit b71d9b1783

View file

@ -567,6 +567,14 @@ gst_deinterleave_getcaps (GstPad * pad, GstObject * parent, GstCaps * filter)
} }
GST_OBJECT_UNLOCK (self); GST_OBJECT_UNLOCK (self);
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); GST_DEBUG_OBJECT (pad, "Intersected caps to %" GST_PTR_FORMAT, ret);
return ret; return ret;