diff options
Diffstat (limited to 'omx/gstomx_adpcmenc.c')
-rw-r--r-- | omx/gstomx_adpcmenc.c | 27 |
1 files changed, 1 insertions, 26 deletions
diff --git a/omx/gstomx_adpcmenc.c b/omx/gstomx_adpcmenc.c index 967ebf9..ab5ce61 100644 --- a/omx/gstomx_adpcmenc.c +++ b/omx/gstomx_adpcmenc.c @@ -25,7 +25,7 @@ #include <string.h> /* for memset */ -static GstOmxBaseFilterClass *parent_class; +GSTOMX_BOILERPLATE (GstOmxAdpcmEnc, gst_omx_adpcmenc, 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 void @@ -235,27 +234,3 @@ type_instance_init (GTypeInstance *instance, gst_pad_set_setcaps_function (omx_base->sinkpad, sink_setcaps); } - -GType -gst_omx_adpcmenc_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 (GstOmxAdpcmEncClass); - type_info->base_init = type_base_init; - type_info->class_init = type_class_init; - type_info->instance_size = sizeof (GstOmxAdpcmEnc); - type_info->instance_init = type_instance_init; - - type = g_type_register_static (GST_OMX_BASE_FILTER_TYPE, "GstOmxAdpcmEnc", type_info, 0); - - g_free (type_info); - } - - return type; -} |