diff --git a/sys/kms/gstkmsallocator.c b/sys/kms/gstkmsallocator.c index dd5f230d1c..4118e17f13 100644 --- a/sys/kms/gstkmsallocator.c +++ b/sys/kms/gstkmsallocator.c @@ -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 */