Skip to content

va: basedec: Fix a bug of src caps decision.

He Junyan requested to merge He_Junyan/gst-plugins-bad:any_caps_va_dec into master

In the get_preferred_format_and_caps_features(), the caps query of downstream using gst_pad_get_allowed_caps() always returns a valid caps. The returned value is the intersection of downstream's sink caps and our src caps. So, for an "any caps" downstream element, such as filesink, we still get a preferred feature of VAMemory and fail to copy the data to system memory.

Merge request reports