G_DEFINE_TYPE already provides one, just need to use it.
/***********************************
* GstAggregatorPad implementation *
************************************/
/***********************************
* GstAggregatorPad implementation *
************************************/
-static GstPadClass *aggregator_pad_parent_class = NULL;
G_DEFINE_TYPE (GstAggregatorPad, gst_aggregator_pad, GST_TYPE_PAD);
static void
G_DEFINE_TYPE (GstAggregatorPad, gst_aggregator_pad, GST_TYPE_PAD);
static void
g_cond_clear (&pad->priv->event_cond);
g_mutex_clear (&pad->priv->stream_lock);
g_cond_clear (&pad->priv->event_cond);
g_mutex_clear (&pad->priv->stream_lock);
- G_OBJECT_CLASS (aggregator_pad_parent_class)->finalize (object);
+ G_OBJECT_CLASS (gst_aggregator_pad_parent_class)->finalize (object);
if (buf)
gst_buffer_unref (buf);
if (buf)
gst_buffer_unref (buf);
- G_OBJECT_CLASS (aggregator_pad_parent_class)->dispose (object);
+ G_OBJECT_CLASS (gst_aggregator_pad_parent_class)->dispose (object);
{
GObjectClass *gobject_class = (GObjectClass *) klass;
{
GObjectClass *gobject_class = (GObjectClass *) klass;
- aggregator_pad_parent_class = g_type_class_peek_parent (klass);
g_type_class_add_private (klass, sizeof (GstAggregatorPadPrivate));
gobject_class->constructed = GST_DEBUG_FUNCPTR (_pad_constructed);
g_type_class_add_private (klass, sizeof (GstAggregatorPadPrivate));
gobject_class->constructed = GST_DEBUG_FUNCPTR (_pad_constructed);