collectpads2: Use G_DEFINE_TYPE instead of GST_BOILERPLATE

This commit is contained in:
Sebastian Dröge 2011-10-28 09:38:35 +02:00
parent 1b1b7931b0
commit 2a13275985

View file

@ -77,7 +77,7 @@
* </para></listitem> * </para></listitem>
* </itemizedlist> * </itemizedlist>
* *
* Last reviewed on 2008-03-14 (0.10.17) * Last reviewed on 2011-10-28 (0.10.36)
* *
* Since: 0.10.36 * Since: 0.10.36
*/ */
@ -87,8 +87,8 @@
GST_DEBUG_CATEGORY_STATIC (collect_pads2_debug); GST_DEBUG_CATEGORY_STATIC (collect_pads2_debug);
#define GST_CAT_DEFAULT collect_pads2_debug #define GST_CAT_DEFAULT collect_pads2_debug
GST_BOILERPLATE (GstCollectPads2, gst_collect_pads2, GstObject, #define parent_class gst_collect_pads2_parent_class
GST_TYPE_OBJECT); G_DEFINE_TYPE (GstCollectPads2, gst_collect_pads2, GST_TYPE_OBJECT);
static void gst_collect_pads2_clear (GstCollectPads2 * pads, static void gst_collect_pads2_clear (GstCollectPads2 * pads,
GstCollectData2 * data); GstCollectData2 * data);
@ -148,12 +148,6 @@ static void unref_data (GstCollectData2 * data);
g_mutex_unlock (GST_COLLECT_PADS2_GET_EVT_LOCK (pads)); \ g_mutex_unlock (GST_COLLECT_PADS2_GET_EVT_LOCK (pads)); \
} G_STMT_END } G_STMT_END
static void
gst_collect_pads2_base_init (gpointer g_class)
{
/* Do nothing here */
}
static void static void
gst_collect_pads2_class_init (GstCollectPads2Class * klass) gst_collect_pads2_class_init (GstCollectPads2Class * klass)
{ {
@ -166,7 +160,7 @@ gst_collect_pads2_class_init (GstCollectPads2Class * klass)
} }
static void static void
gst_collect_pads2_init (GstCollectPads2 * pads, GstCollectPads2Class * g_class) gst_collect_pads2_init (GstCollectPads2 * pads)
{ {
pads->data = NULL; pads->data = NULL;
pads->cookie = 0; pads->cookie = 0;