mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-13 10:55:34 +00:00
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:
parent
cf7cfb0a0e
commit
8e4582946c
9 changed files with 3 additions and 10 deletions
|
@ -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,
|
||||
|
|
|
@ -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},
|
||||
|
|
|
@ -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},
|
||||
|
|
|
@ -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},
|
||||
|
|
|
@ -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},
|
||||
|
|
|
@ -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},
|
||||
|
|
|
@ -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},
|
||||
|
|
|
@ -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},
|
||||
|
|
|
@ -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},
|
||||
|
|
Loading…
Reference in a new issue