From e59b3c93c75c5d35a9f4f9a5d6fb806c7b506090 Mon Sep 17 00:00:00 2001 From: Matthew Waters Date: Wed, 30 Nov 2022 04:04:09 +0000 Subject: [PATCH] glupload: add CAN_ACCEPT_RAW to all dma-buf uploaders Fixes cases where a dma-buf would be uploaded using direct-dma-buf into an external-oes texture (using video/x-raw caps) and then attempting to reconfigure the same source. Part-of: --- subprojects/gst-plugins-base/gst-libs/gst/gl/gstglupload.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/subprojects/gst-plugins-base/gst-libs/gst/gl/gstglupload.c b/subprojects/gst-plugins-base/gst-libs/gst/gl/gstglupload.c index 5d17ec1dfc..344a4631a9 100644 --- a/subprojects/gst-plugins-base/gst-libs/gst/gl/gstglupload.c +++ b/subprojects/gst-plugins-base/gst-libs/gst/gl/gstglupload.c @@ -950,7 +950,7 @@ _direct_dma_buf_upload_transform_caps (gpointer impl, GstGLContext * context, static const UploadMethod _direct_dma_buf_upload = { "DirectDmabuf", - 0, + METHOD_FLAG_CAN_ACCEPT_RAW, &_dma_buf_upload_caps, &_direct_dma_buf_upload_new, &_direct_dma_buf_upload_transform_caps, @@ -972,7 +972,7 @@ _direct_dma_buf_external_upload_new (GstGLUpload * upload) static const UploadMethod _direct_dma_buf_external_upload = { "DirectDmabufExternal", - 0, + METHOD_FLAG_CAN_ACCEPT_RAW, &_dma_buf_upload_caps, &_direct_dma_buf_external_upload_new, &_direct_dma_buf_upload_transform_caps,