From 10e5db047a023a5421c0edec5787b9ad347913b9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=ADctor=20Manuel=20J=C3=A1quez=20Leal?= Date: Thu, 14 Oct 2021 07:03:26 +0200 Subject: [PATCH] vapostproc: Accept ANY feature. Part-of: --- subprojects/gst-plugins-bad/sys/va/gstvavpp.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/subprojects/gst-plugins-bad/sys/va/gstvavpp.c b/subprojects/gst-plugins-bad/sys/va/gstvavpp.c index 0f671ba..17be688 100644 --- a/subprojects/gst-plugins-bad/sys/va/gstvavpp.c +++ b/subprojects/gst-plugins-bad/sys/va/gstvavpp.c @@ -1907,10 +1907,18 @@ gst_va_vpp_class_init (gpointer g_class, gpointer class_data) display = gst_va_display_drm_new_from_path (btrans_class->render_device_path); filter = gst_va_filter_new (display); - if (gst_va_filter_open (filter)) + if (gst_va_filter_open (filter)) { caps = gst_va_filter_get_caps (filter); - else + + /* adds any to enable passthrough */ + { + GstCaps *any_caps = gst_caps_new_empty_simple ("video/x-raw"); + gst_caps_set_features_simple (any_caps, gst_caps_features_new_any ()); + caps = gst_caps_merge (caps, any_caps); + } + } else { caps = gst_caps_from_string (caps_str); + } doc_caps = gst_caps_from_string (caps_str); -- 2.7.4