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:
Sebastian Dröge 2016-11-14 17:37:51 +02:00
parent 89ad2de93e
commit 4f426f6f54

View file

@ -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;
}