diff options
Diffstat (limited to 'omx/gstomx_g729dec.c')
-rw-r--r-- | omx/gstomx_g729dec.c | 27 |
1 files changed, 1 insertions, 26 deletions
diff --git a/omx/gstomx_g729dec.c b/omx/gstomx_g729dec.c index 1aefa60..666d5ab 100644 --- a/omx/gstomx_g729dec.c +++ b/omx/gstomx_g729dec.c @@ -23,7 +23,7 @@ #include "gstomx_base_filter.h" #include "gstomx.h" -static GstOmxBaseFilterClass *parent_class; +GSTOMX_BOILERPLATE (GstOmxG729Dec, gst_omx_g729dec, GstOmxBaseFilter, GST_OMX_BASE_FILTER_TYPE); static GstCaps * generate_src_template (void) @@ -103,7 +103,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 @@ -142,27 +141,3 @@ type_instance_init (GTypeInstance *instance, omx_base->gomx->settings_changed_cb = settings_changed_cb; } - -GType -gst_omx_g729dec_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 (GstOmxG729DecClass); - type_info->base_init = type_base_init; - type_info->class_init = type_class_init; - type_info->instance_size = sizeof (GstOmxG729Dec); - type_info->instance_init = type_instance_init; - - type = g_type_register_static (GST_OMX_BASE_FILTER_TYPE, "GstOmxG729Dec", type_info, 0); - - g_free (type_info); - } - - return type; -} |