mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 08:46:40 +00:00
kmsallocator: Update GstVideoInfo.size when extrapolating
When we guess the strides, we need to also update the GstVideoInfo.size otherwise the memory size will be set to something smaller then needed. This was causing crash with the DMABuf exportation, since we would not mmap() a large enough buffer. https://bugzilla.gnome.org/show_bug.cgi?id=787593
This commit is contained in:
parent
922031b0f9
commit
2057a36d04
1 changed files with 3 additions and 0 deletions
|
@ -213,6 +213,9 @@ gst_kms_allocator_memory_create (GstKMSAllocator * allocator,
|
|||
GST_VIDEO_INFO_PLANE_OFFSET (vinfo, i));
|
||||
}
|
||||
|
||||
/* Update with the size use for display, excluding any padding at the end */
|
||||
GST_VIDEO_INFO_SIZE (vinfo) = offs;
|
||||
|
||||
done:
|
||||
kmsmem->bo->handle = arg.handle;
|
||||
/* will be used a memory maxsize */
|
||||
|
|
Loading…
Reference in a new issue