mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-09-29 23:32:33 +00:00
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:
parent
aaed9272c1
commit
dcd911f5dc
1 changed files with 3 additions and 0 deletions
|
@ -193,6 +193,9 @@ videoscale_get_allowed_caps_for_method (int method)
|
||||||
ret = g_new0 (GstCaps *, n + 1);
|
ret = g_new0 (GstCaps *, n + 1);
|
||||||
|
|
||||||
for (i = 0; i < n; i++) {
|
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);
|
s = gst_caps_get_structure (caps, i);
|
||||||
ret[i] = gst_caps_new_empty ();
|
ret[i] = gst_caps_new_empty ();
|
||||||
gst_caps_append_structure (ret[i], gst_structure_copy (s));
|
gst_caps_append_structure (ret[i], gst_structure_copy (s));
|
||||||
|
|
Loading…
Reference in a new issue