diff options
Diffstat (limited to 'omx/gstomx_adpcmdec.c')
-rw-r--r-- | omx/gstomx_adpcmdec.c | 27 |
1 files changed, 1 insertions, 26 deletions
diff --git a/omx/gstomx_adpcmdec.c b/omx/gstomx_adpcmdec.c index 86bb54c..ed77085 100644 --- a/omx/gstomx_adpcmdec.c +++ b/omx/gstomx_adpcmdec.c @@ -25,7 +25,7 @@ #include <string.h> /* for memset */ -static GstOmxBaseFilterClass *parent_class; +GSTOMX_BOILERPLATE (GstOmxAdpcmDec, gst_omx_adpcmdec, GstOmxBaseFilter, GST_OMX_BASE_FILTER_TYPE); static GstCaps * generate_src_template (void) @@ -101,7 +101,6 @@ static void type_class_init (gpointer g_class, gpointer class_data) { - parent_class = g_type_class_ref (GST_OMX_BASE_FILTER_TYPE); } static gboolean @@ -171,27 +170,3 @@ type_instance_init (GTypeInstance *instance, gst_pad_set_setcaps_function (omx_base->sinkpad, sink_setcaps); } - -GType -gst_omx_adpcmdec_get_type (void) -{ - static GType type = 0; - - if (G_UNLIKELY (type == 0)) - { - GTypeInfo *type_info; - - type_info = g_new0 (GTypeInfo, 1); - type_info->class_size = sizeof (GstOmxAdpcmDecClass); - type_info->base_init = type_base_init; - type_info->class_init = type_class_init; - type_info->instance_size = sizeof (GstOmxAdpcmDec); - type_info->instance_init = type_instance_init; - - type = g_type_register_static (GST_OMX_BASE_FILTER_TYPE, "GstOmxAdpcmDec", type_info, 0); - - g_free (type_info); - } - - return type; -} |