mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 19:51:11 +00:00
deinterleave: Reset caps accumulator to ANY when resyncing the adapter, not EMPTY
The accumulator is filled by intersecting with all the pad caps, as such it must be initialized with ANY (like it is before the iteration is started) and not to EMPTY. Fixes the CAPS query always returning EMPTY caps when resyncing happened during the query, e.g. because pads were added/removed.
This commit is contained in:
parent
89ad2de93e
commit
4f426f6f54
1 changed files with 1 additions and 1 deletions
|
@ -638,7 +638,7 @@ gst_deinterleave_getcaps (GstPad * pad, GstObject * parent, GstCaps * filter)
|
|||
break;
|
||||
case GST_ITERATOR_RESYNC:
|
||||
gst_caps_unref (ret);
|
||||
ret = gst_caps_new_empty ();
|
||||
ret = gst_caps_new_any ();
|
||||
gst_iterator_resync (it);
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue