diff options
Diffstat (limited to 'omx/gstomx_volume.c')
-rw-r--r-- | omx/gstomx_volume.c | 27 |
1 files changed, 1 insertions, 26 deletions
diff --git a/omx/gstomx_volume.c b/omx/gstomx_volume.c index 3fbc4e9..cd23103 100644 --- a/omx/gstomx_volume.c +++ b/omx/gstomx_volume.c @@ -26,7 +26,7 @@ #include <string.h> /* for memset */ -static GstOmxBaseFilterClass *parent_class; +GSTOMX_BOILERPLATE (GstOmxVolume, gst_omx_volume, GstOmxBaseFilter, GST_OMX_BASE_FILTER_TYPE); static GstCaps * generate_src_template (void) @@ -105,7 +105,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 @@ -169,27 +168,3 @@ type_instance_init (GTypeInstance *instance, omx_base->gomx->settings_changed_cb = settings_changed_cb; } - -GType -gst_omx_volume_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 (GstOmxVolumeClass); - type_info->base_init = type_base_init; - type_info->class_init = type_class_init; - type_info->instance_size = sizeof (GstOmxVolume); - type_info->instance_init = type_instance_init; - - type = g_type_register_static (GST_OMX_BASE_FILTER_TYPE, "GstOmxVolume", type_info, 0); - - g_free (type_info); - } - - return type; -} |