mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-08 23:42:28 +00:00
miniobject: Minor cleanup of last commit
This commit is contained in:
parent
cf671d7b0a
commit
116972d6eb
2 changed files with 9 additions and 6 deletions
|
@ -59,7 +59,7 @@ typedef struct
|
||||||
} WeakRefStack;
|
} WeakRefStack;
|
||||||
|
|
||||||
/* Structure for storing a mini object's private data */
|
/* Structure for storing a mini object's private data */
|
||||||
struct _GstMiniObjectPrivateData
|
struct _GstMiniObjectPrivate
|
||||||
{
|
{
|
||||||
WeakRefStack *wstack;
|
WeakRefStack *wstack;
|
||||||
};
|
};
|
||||||
|
@ -162,7 +162,7 @@ gst_mini_object_class_init (gpointer g_class, gpointer class_data)
|
||||||
mo_class->finalize = gst_mini_object_finalize;
|
mo_class->finalize = gst_mini_object_finalize;
|
||||||
|
|
||||||
/* Set the instance data type */
|
/* Set the instance data type */
|
||||||
g_type_class_add_private (g_class, sizeof (GstMiniObjectPrivateData));
|
g_type_class_add_private (g_class, sizeof (GstMiniObjectPrivate));
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -174,9 +174,9 @@ gst_mini_object_init (GTypeInstance * instance, gpointer klass)
|
||||||
|
|
||||||
/* Initialize the mini object's private data */
|
/* Initialize the mini object's private data */
|
||||||
|
|
||||||
mini_object->priv = (GstMiniObjectPrivateData *)
|
mini_object->priv = (GstMiniObjectPrivate *)
|
||||||
G_TYPE_INSTANCE_GET_PRIVATE (instance, GST_TYPE_MINI_OBJECT,
|
G_TYPE_INSTANCE_GET_PRIVATE (instance, GST_TYPE_MINI_OBJECT,
|
||||||
GstMiniObjectPrivateData);
|
GstMiniObjectPrivate);
|
||||||
|
|
||||||
mini_object->priv->wstack = NULL;
|
mini_object->priv->wstack = NULL;
|
||||||
}
|
}
|
||||||
|
|
|
@ -145,11 +145,14 @@ typedef enum
|
||||||
* mini object is already being finalized when the #GstMiniObjectWeakNotify is
|
* mini object is already being finalized when the #GstMiniObjectWeakNotify is
|
||||||
* called, there's not much you could do with the object, apart from e.g. using
|
* called, there's not much you could do with the object, apart from e.g. using
|
||||||
* its adress as hash-index or the like.
|
* its adress as hash-index or the like.
|
||||||
|
*
|
||||||
|
* Since: 0.10.34
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
typedef void (*GstMiniObjectWeakNotify) (gpointer data,
|
typedef void (*GstMiniObjectWeakNotify) (gpointer data,
|
||||||
GstMiniObject * where_the_mini_object_was);
|
GstMiniObject * where_the_mini_object_was);
|
||||||
|
|
||||||
typedef struct _GstMiniObjectPrivateData GstMiniObjectPrivateData;
|
typedef struct _GstMiniObjectPrivate GstMiniObjectPrivate;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* GstMiniObject:
|
* GstMiniObject:
|
||||||
|
@ -170,7 +173,7 @@ struct _GstMiniObject {
|
||||||
guint flags;
|
guint flags;
|
||||||
|
|
||||||
/*< private >*/
|
/*< private >*/
|
||||||
GstMiniObjectPrivateData *priv;
|
GstMiniObjectPrivate *priv;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct _GstMiniObjectClass {
|
struct _GstMiniObjectClass {
|
||||||
|
|
Loading…
Reference in a new issue