From a1a2a3331516301132d9094279118dcc441fcd70 Mon Sep 17 00:00:00 2001 From: Nicolas Dufresne Date: Fri, 18 Nov 2016 14:51:29 -0500 Subject: [PATCH] dmabuf-allocator: Add missing padding in the class This class was made subclassable, though for future growth of the code, it's better if we have some room for add class members. Using the small padding since this is unlikely. --- gst-libs/gst/allocators/gstdmabuf.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gst-libs/gst/allocators/gstdmabuf.h b/gst-libs/gst/allocators/gstdmabuf.h index 653ce321f8..c6301daacd 100644 --- a/gst-libs/gst/allocators/gstdmabuf.h +++ b/gst-libs/gst/allocators/gstdmabuf.h @@ -81,11 +81,17 @@ typedef struct _GstDmaBufAllocatorClass GstDmaBufAllocatorClass; struct _GstDmaBufAllocator { GstFdAllocator parent; + + /*< private >*/ + gpointer _gst_reserved[GST_PADDING]; }; struct _GstDmaBufAllocatorClass { GstFdAllocatorClass parent_class; + + /*< private >*/ + gpointer _gst_reserved[GST_PADDING]; };