gl: add padding to all exposed winsys/platform-specific structs
authorMatthew Waters <matthew@centricular.com>
Mon, 7 Nov 2016 15:50:41 +0000 (02:50 +1100)
committerMatthew Waters <matthew@centricular.com>
Tue, 8 Nov 2016 01:46:09 +0000 (12:46 +1100)
gst-libs/gst/gl/egl/gsteglimage.h
gst-libs/gst/gl/egl/gstgldisplay_egl.h
gst-libs/gst/gl/egl/gstglmemoryegl.h
gst-libs/gst/gl/wayland/gstgldisplay_wayland.h
gst-libs/gst/gl/x11/gstgldisplay_x11.h

index 7136c0f..46ee4ff 100644 (file)
@@ -60,6 +60,8 @@ struct _GstEGLImage
   /* <private> */
   gpointer destroy_data;
   GstEGLImageDestroyNotify destroy_notify;
+
+  gpointer _padding[GST_PADDING];
 };
 
 GstEGLImage *             gst_egl_image_new_wrapped             (GstGLContext * context,
index 18c7e4f..6ec7ccc 100644 (file)
@@ -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);
index bf62beb..fa37d4e 100644 (file)
@@ -57,6 +57,8 @@ struct _GstGLMemoryEGL
   GstGLMemory mem;
 
   GstEGLImage *image;
+
+  gpointer _padding[GST_PADDING];
 };
 
 /**
@@ -85,6 +87,8 @@ struct _GstGLMemoryEGLAllocator
   /* <private> */
 
   GstGLMemoryAllocator parent;
+
+  gpointer _padding[GST_PADDING];
 };
 
 /**
@@ -96,6 +100,8 @@ struct _GstGLMemoryEGLAllocatorClass
 {
   /* <private> */
   GstGLMemoryAllocatorClass parent_class;
+
+  gpointer _padding[GST_PADDING];
 };
 
 G_END_DECLS
index 3612c78..6fbf522 100644 (file)
@@ -60,11 +60,15 @@ struct _GstGLDisplayWayland
 
   /* <private> */
   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);
index d80ba51..2962474 100644 (file)
@@ -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);