video: dma: let gst_video_info_dma_drm_to_caps() return caps with DMABuf feature

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5107>
This commit is contained in:
He Junyan 2023-07-26 23:47:42 +08:00 committed by GStreamer Marge Bot
parent 5fd3c8a16c
commit 9e863976c9

View file

@ -271,6 +271,9 @@ gst_video_info_dma_drm_to_caps (const GstVideoInfoDmaDrm * drm_info)
return NULL;
}
gst_caps_set_features_simple (caps,
gst_caps_features_from_string (GST_CAPS_FEATURE_MEMORY_DMABUF));
str = gst_video_dma_drm_fourcc_to_string (drm_info->drm_fourcc,
drm_info->drm_modifier);