mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-27 02:30:35 +00:00
glupload: Plane size is not known for DMA_DRM
For these format, the plane size is not known, simply use 1 when searching for the memory object in the GstBuffer array. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5461>
This commit is contained in:
parent
e00682a4c0
commit
0e5f5b413c
1 changed files with 4 additions and 1 deletions
|
@ -1463,7 +1463,10 @@ _dma_buf_upload_accept (gpointer impl, GstBuffer * buffer, GstCaps * in_caps,
|
|||
guint mem_idx;
|
||||
gsize mem_skip;
|
||||
|
||||
plane_size = gst_gl_get_plane_data_size (in_info, NULL, i);
|
||||
if (GST_VIDEO_INFO_FORMAT (in_info) == GST_VIDEO_FORMAT_DMA_DRM)
|
||||
plane_size = 1;
|
||||
else
|
||||
plane_size = gst_gl_get_plane_data_size (in_info, NULL, i);
|
||||
|
||||
if (!gst_buffer_find_memory (buffer, in_info->offset[i], plane_size,
|
||||
&mem_idx, &length, &mem_skip)) {
|
||||
|
|
Loading…
Reference in a new issue