tests: videoscale: Skip passthrough caps

There scaler can only passthrough with the caps from the ANY caps filter. This
stops testing all the formats twice and avoid failing on DMA_DRM format.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5386>
This commit is contained in:
Nicolas Dufresne 2023-09-29 14:45:26 +02:00 committed by GStreamer Marge Bot
parent aaed9272c1
commit dcd911f5dc

View file

@ -193,6 +193,9 @@ videoscale_get_allowed_caps_for_method (int method)
ret = g_new0 (GstCaps *, n + 1);
for (i = 0; i < n; i++) {
/* Skip passthrough caps */
if (gst_caps_features_is_any (gst_caps_get_features (caps, i)))
continue;
s = gst_caps_get_structure (caps, i);
ret[i] = gst_caps_new_empty ();
gst_caps_append_structure (ret[i], gst_structure_copy (s));