Commit 2a132759 authored by Sebastian Dröge's avatar Sebastian Dröge
Browse files

collectpads2: Use G_DEFINE_TYPE instead of GST_BOILERPLATE

parent 1b1b7931
......@@ -77,7 +77,7 @@
* </para></listitem>
* </itemizedlist>
*
* Last reviewed on 2008-03-14 (0.10.17)
* Last reviewed on 2011-10-28 (0.10.36)
*
* Since: 0.10.36
*/
......@@ -87,8 +87,8 @@
GST_DEBUG_CATEGORY_STATIC (collect_pads2_debug);
#define GST_CAT_DEFAULT collect_pads2_debug
GST_BOILERPLATE (GstCollectPads2, gst_collect_pads2, GstObject,
GST_TYPE_OBJECT);
#define parent_class gst_collect_pads2_parent_class
G_DEFINE_TYPE (GstCollectPads2, gst_collect_pads2, GST_TYPE_OBJECT);
static void gst_collect_pads2_clear (GstCollectPads2 * pads,
GstCollectData2 * data);
......@@ -148,12 +148,6 @@ static void unref_data (GstCollectData2 * data);
g_mutex_unlock (GST_COLLECT_PADS2_GET_EVT_LOCK (pads)); \
} G_STMT_END
static void
gst_collect_pads2_base_init (gpointer g_class)
{
/* Do nothing here */
}
static void
gst_collect_pads2_class_init (GstCollectPads2Class * klass)
{
......@@ -166,7 +160,7 @@ gst_collect_pads2_class_init (GstCollectPads2Class * klass)
}
static void
gst_collect_pads2_init (GstCollectPads2 * pads, GstCollectPads2Class * g_class)
gst_collect_pads2_init (GstCollectPads2 * pads)
{
pads->data = NULL;
pads->cookie = 0;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment