From d993b8636f4c5bcaaab37f9e30bd62e1dcd53617 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Manuel=20J=C3=A1quez=20Leal?= Date: Mon, 28 Oct 2024 14:11:50 +0100 Subject: [PATCH] vaapipluginutil: ignore dmabuf type when building caps Part-of: --- .../gstreamer-vaapi/gst/vaapi/gstvaapipluginutil.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/subprojects/gstreamer-vaapi/gst/vaapi/gstvaapipluginutil.c b/subprojects/gstreamer-vaapi/gst/vaapi/gstvaapipluginutil.c index c23e89264e..b35af065df 100644 --- a/subprojects/gstreamer-vaapi/gst/vaapi/gstvaapipluginutil.c +++ b/subprojects/gstreamer-vaapi/gst/vaapi/gstvaapipluginutil.c @@ -1105,9 +1105,7 @@ GstCaps * gst_vaapi_build_caps_from_formats (GArray * formats, gint min_width, gint min_height, gint max_width, gint max_height, guint mem_types) { - GstCaps *out_caps, *raw_caps, *va_caps, *dma_caps; - - dma_caps = NULL; + GstCaps *out_caps, *raw_caps, *va_caps; raw_caps = gst_vaapi_video_format_new_template_caps_from_list (formats); if (!raw_caps) @@ -1124,15 +1122,10 @@ gst_vaapi_build_caps_from_formats (GArray * formats, gint min_width, GST_VAAPI_BUFFER_MEMORY_TYPE_DMA_BUF) || gst_vaapi_mem_type_supports (mem_types, GST_VAAPI_BUFFER_MEMORY_TYPE_DMA_BUF2)) { - dma_caps = gst_caps_copy (raw_caps); - gst_caps_set_features_simple (dma_caps, - gst_caps_features_new_static_str (GST_CAPS_FEATURE_MEMORY_DMABUF, - NULL)); + GST_INFO ("Ignoring DMABuf caps"); } out_caps = va_caps; - if (dma_caps) - gst_caps_append (out_caps, dma_caps); gst_caps_append (out_caps, raw_caps); return out_caps;