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;