glupload: Delete the flag of METHOD_FLAG_CAN_ACCEPT_RAW for DMABuf

When this flag is enabled, the transform_caps() simply set passthrough
to generate the raw caps. This is not correct, because the sink and
src have different format/drm-format fields.
We already add system memory conversion for DMABuf manner, so no more
need for this flag.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3524>
This commit is contained in:
He Junyan 2023-06-01 18:52:28 +08:00 committed by GStreamer Marge Bot
parent 094270322b
commit 3cebfc7e84

View file

@ -1601,7 +1601,7 @@ _dma_buf_upload_free (gpointer impl)
static const UploadMethod _dma_buf_upload = {
"Dmabuf",
METHOD_FLAG_CAN_ACCEPT_RAW,
0,
&_dma_buf_upload_caps,
&_dma_buf_upload_new,
&_dma_buf_upload_transform_caps,
@ -1746,7 +1746,7 @@ _direct_dma_buf_upload_transform_caps (gpointer impl, GstGLContext * context,
static const UploadMethod _direct_dma_buf_upload = {
"DirectDmabuf",
METHOD_FLAG_CAN_ACCEPT_RAW,
0,
&_dma_buf_upload_caps,
&_direct_dma_buf_upload_new,
&_direct_dma_buf_upload_transform_caps,
@ -1768,7 +1768,7 @@ _direct_dma_buf_external_upload_new (GstGLUpload * upload)
static const UploadMethod _direct_dma_buf_external_upload = {
"DirectDmabufExternal",
METHOD_FLAG_CAN_ACCEPT_RAW,
0,
&_dma_buf_upload_caps,
&_direct_dma_buf_external_upload_new,
&_direct_dma_buf_upload_transform_caps,