gl: add padding to all exposed winsys/platform-specific structs

This commit is contained in:
Matthew Waters 2016-11-08 02:50:41 +11:00
parent 2209c5d97f
commit 86930b6d11
5 changed files with 20 additions and 0 deletions

View 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,

View 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);

View 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

View 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);

View 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);