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: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3486>
This commit is contained in:
Matthew Waters 2022-11-30 04:04:09 +00:00 committed by GStreamer Marge Bot
parent 04dc8e2484
commit e59b3c93c7

View file

@ -950,7 +950,7 @@ _direct_dma_buf_upload_transform_caps (gpointer impl, GstGLContext * context,
static const UploadMethod _direct_dma_buf_upload = { static const UploadMethod _direct_dma_buf_upload = {
"DirectDmabuf", "DirectDmabuf",
0, METHOD_FLAG_CAN_ACCEPT_RAW,
&_dma_buf_upload_caps, &_dma_buf_upload_caps,
&_direct_dma_buf_upload_new, &_direct_dma_buf_upload_new,
&_direct_dma_buf_upload_transform_caps, &_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 = { static const UploadMethod _direct_dma_buf_external_upload = {
"DirectDmabufExternal", "DirectDmabufExternal",
0, METHOD_FLAG_CAN_ACCEPT_RAW,
&_dma_buf_upload_caps, &_dma_buf_upload_caps,
&_direct_dma_buf_external_upload_new, &_direct_dma_buf_external_upload_new,
&_direct_dma_buf_upload_transform_caps, &_direct_dma_buf_upload_transform_caps,