From d0b8f7c00297777685f9e7b5963dc7680e9abc99 Mon Sep 17 00:00:00 2001 From: Matthew Waters Date: Tue, 8 Nov 2016 02:50:41 +1100 Subject: [PATCH] gl: add padding to all exposed winsys/platform-specific structs --- gst-libs/gst/gl/egl/gsteglimage.h | 2 ++ gst-libs/gst/gl/egl/gstgldisplay_egl.h | 4 ++++ gst-libs/gst/gl/egl/gstglmemoryegl.h | 6 ++++++ gst-libs/gst/gl/wayland/gstgldisplay_wayland.h | 4 ++++ gst-libs/gst/gl/x11/gstgldisplay_x11.h | 4 ++++ 5 files changed, 20 insertions(+) diff --git a/gst-libs/gst/gl/egl/gsteglimage.h b/gst-libs/gst/gl/egl/gsteglimage.h index 7136c0f..46ee4ff 100644 --- a/gst-libs/gst/gl/egl/gsteglimage.h +++ b/gst-libs/gst/gl/egl/gsteglimage.h @@ -60,6 +60,8 @@ struct _GstEGLImage /* */ gpointer destroy_data; GstEGLImageDestroyNotify destroy_notify; + + gpointer _padding[GST_PADDING]; }; GstEGLImage * gst_egl_image_new_wrapped (GstGLContext * context, diff --git a/gst-libs/gst/gl/egl/gstgldisplay_egl.h b/gst-libs/gst/gl/egl/gstgldisplay_egl.h index 18c7e4f..6ec7ccc 100644 --- a/gst-libs/gst/gl/egl/gstgldisplay_egl.h +++ b/gst-libs/gst/gl/egl/gstgldisplay_egl.h @@ -53,11 +53,15 @@ struct _GstGLDisplayEGL EGLDisplay display; gboolean foreign_display; + + gpointer _padding[GST_PADDING]; }; struct _GstGLDisplayEGLClass { GstGLDisplayClass object_class; + + gpointer _padding[GST_PADDING]; }; GstGLDisplayEGL *gst_gl_display_egl_new (void); diff --git a/gst-libs/gst/gl/egl/gstglmemoryegl.h b/gst-libs/gst/gl/egl/gstglmemoryegl.h index bf62beb..fa37d4e 100644 --- a/gst-libs/gst/gl/egl/gstglmemoryegl.h +++ b/gst-libs/gst/gl/egl/gstglmemoryegl.h @@ -57,6 +57,8 @@ struct _GstGLMemoryEGL GstGLMemory mem; GstEGLImage *image; + + gpointer _padding[GST_PADDING]; }; /** @@ -85,6 +87,8 @@ struct _GstGLMemoryEGLAllocator /* */ GstGLMemoryAllocator parent; + + gpointer _padding[GST_PADDING]; }; /** @@ -96,6 +100,8 @@ struct _GstGLMemoryEGLAllocatorClass { /* */ GstGLMemoryAllocatorClass parent_class; + + gpointer _padding[GST_PADDING]; }; G_END_DECLS diff --git a/gst-libs/gst/gl/wayland/gstgldisplay_wayland.h b/gst-libs/gst/gl/wayland/gstgldisplay_wayland.h index 3612c78..6fbf522 100644 --- a/gst-libs/gst/gl/wayland/gstgldisplay_wayland.h +++ b/gst-libs/gst/gl/wayland/gstgldisplay_wayland.h @@ -60,11 +60,15 @@ struct _GstGLDisplayWayland /* */ gboolean foreign_display; + + gpointer _padding[GST_PADDING]; }; struct _GstGLDisplayWaylandClass { GstGLDisplayClass object_class; + + gpointer _padding[GST_PADDING]; }; GstGLDisplayWayland *gst_gl_display_wayland_new (const gchar * name); diff --git a/gst-libs/gst/gl/x11/gstgldisplay_x11.h b/gst-libs/gst/gl/x11/gstgldisplay_x11.h index d80ba51..2962474 100644 --- a/gst-libs/gst/gl/x11/gstgldisplay_x11.h +++ b/gst-libs/gst/gl/x11/gstgldisplay_x11.h @@ -57,11 +57,15 @@ struct _GstGLDisplayX11 gchar *name; Display *display; gboolean foreign_display; + + gpointer _padding[GST_PADDING]; }; struct _GstGLDisplayX11Class { GstGLDisplayClass object_class; + + gpointer _padding[GST_PADDING]; }; GstGLDisplayX11 *gst_gl_display_x11_new (const gchar * name); -- 2.7.4