mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 08:46:40 +00:00
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:
parent
74c05502f7
commit
b71d9b1783
1 changed files with 8 additions and 0 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue