meta: remove unnecessary padding for GstMetaInfo struct

This structure is always allocated by GStreamer, can't be
subclassed or extended, and is never allocated or used on
the stack, so we don't need any padding and can extend it
as we please.
This commit is contained in:
Tim-Philipp Müller 2016-12-02 15:30:59 +00:00
parent cf7cfb0a0e
commit 8e4582946c
9 changed files with 3 additions and 10 deletions

View file

@ -197,8 +197,9 @@ struct _GstMetaInfo {
GstMetaFreeFunction free_func;
GstMetaTransformFunction transform_func;
/*< private >*/
gpointer _gst_reserved[GST_PADDING];
/* No padding needed, GstMetaInfo is always allocated by GStreamer and is
* not subclassable or stack-allocatable, so we can extend it as we please
* just like interfaces */
};
GType gst_meta_api_type_register (const gchar *api,

View file

@ -32,7 +32,6 @@ GstCheckABIStruct list[] = {
{"GstMessage", sizeof (GstMessage), 80},
{"GstMeta", sizeof (GstMeta), 8},
{"GstMetaTransformCopy", sizeof (GstMetaTransformCopy), 12},
{"GstMetaInfo", sizeof (GstMetaInfo), 40},
{"GstMiniObject", sizeof (GstMiniObject), 36},
{"GstObjectClass", sizeof (GstObjectClass), 92},
{"GstObject", sizeof (GstObject), 64},

View file

@ -31,7 +31,6 @@ static GstCheckABIStruct list[] = {
{"GstMessage", sizeof (GstMessage), 120},
{"GstMeta", sizeof (GstMeta), 16},
{"GstMetaTransformCopy", sizeof (GstMetaTransformCopy), 24},
{"GstMetaInfo", sizeof (GstMetaInfo), 80},
{"GstMiniObject", sizeof (GstMiniObject), 64},
{"GstObjectClass", sizeof (GstObjectClass), 184},
{"GstObject", sizeof (GstObject), 88},

View file

@ -31,7 +31,6 @@ static GstCheckABIStruct list[] = {
{"GstMessage", sizeof (GstMessage), 76},
{"GstMeta", sizeof (GstMeta), 8},
{"GstMetaTransformCopy", sizeof (GstMetaTransformCopy), 12},
{"GstMetaInfo", sizeof (GstMetaInfo), 40},
{"GstMiniObject", sizeof (GstMiniObject), 36},
{"GstObjectClass", sizeof (GstObjectClass), 92},
{"GstObject", sizeof (GstObject), 56},

View file

@ -31,7 +31,6 @@ static GstCheckABIStruct list[] = {
{"GstMessage", sizeof (GstMessage), 80},
{"GstMeta", sizeof (GstMeta), 8},
{"GstMetaTransformCopy", sizeof (GstMetaTransformCopy), 12},
{"GstMetaInfo", sizeof (GstMetaInfo), 40},
{"GstMiniObject", sizeof (GstMiniObject), 36},
{"GstObjectClass", sizeof (GstObjectClass), 92},
{"GstObject", sizeof (GstObject), 64},

View file

@ -31,7 +31,6 @@ static GstCheckABIStruct list[] = {
{"GstMessage", sizeof (GstMessage), 80},
{"GstMeta", sizeof (GstMeta), 8},
{"GstMetaTransformCopy", sizeof (GstMetaTransformCopy), 12},
{"GstMetaInfo", sizeof (GstMetaInfo), 40},
{"GstMiniObject", sizeof (GstMiniObject), 36},
{"GstObjectClass", sizeof (GstObjectClass), 92},
{"GstObject", sizeof (GstObject), 64},

View file

@ -31,7 +31,6 @@ static GstCheckABIStruct list[] = {
{"GstMessage", sizeof (GstMessage), 120},
{"GstMeta", sizeof (GstMeta), 16},
{"GstMetaTransformCopy", sizeof (GstMetaTransformCopy), 24},
{"GstMetaInfo", sizeof (GstMetaInfo), 80},
{"GstMiniObject", sizeof (GstMiniObject), 64},
{"GstObjectClass", sizeof (GstObjectClass), 184},
{"GstObject", sizeof (GstObject), 88},

View file

@ -31,7 +31,6 @@ static GstCheckABIStruct list[] = {
{"GstMessage", sizeof (GstMessage), 120},
{"GstMeta", sizeof (GstMeta), 16},
{"GstMetaTransformCopy", sizeof (GstMetaTransformCopy), 24},
{"GstMetaInfo", sizeof (GstMetaInfo), 80},
{"GstMiniObject", sizeof (GstMiniObject), 64},
{"GstObjectClass", sizeof (GstObjectClass), 184},
{"GstObject", sizeof (GstObject), 88},

View file

@ -31,7 +31,6 @@ static GstCheckABIStruct list[] = {
{"GstMessage", sizeof (GstMessage), 120},
{"GstMeta", sizeof (GstMeta), 16},
{"GstMetaTransformCopy", sizeof (GstMetaTransformCopy), 24},
{"GstMetaInfo", sizeof (GstMetaInfo), 80},
{"GstMiniObject", sizeof (GstMiniObject), 64},
{"GstObjectClass", sizeof (GstObjectClass), 184},
{"GstObject", sizeof (GstObject), 88},