diff options
author | Tim-Philipp Müller <tim@centricular.com> | 2018-08-19 14:39:53 +0100 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2018-08-19 14:42:23 +0100 |
commit | 90625953f27668bde29983e2ad3afe2f49d4133f (patch) | |
tree | 2d3dff018d885b7ed7fed1be9fb10b04c1175537 | |
parent | 40d13b47e3d0dd0e15764e317964fd0f7f9cfbbd (diff) |
freeverb: update for g_type_class_add_private() deprecation
Not that the private struct is really needed here.
-rw-r--r-- | gst/freeverb/gstfreeverb.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/gst/freeverb/gstfreeverb.c b/gst/freeverb/gstfreeverb.c index 21f5cde65..2ea9ee803 100644 --- a/gst/freeverb/gstfreeverb.c +++ b/gst/freeverb/gstfreeverb.c @@ -89,9 +89,6 @@ static GstStaticPadTemplate src_template = GST_STATIC_PAD_TEMPLATE ("src", "layout = (string) interleaved") ); -G_DEFINE_TYPE_WITH_CODE (GstFreeverb, gst_freeverb, GST_TYPE_BASE_TRANSFORM, - G_IMPLEMENT_INTERFACE (GST_TYPE_PRESET, NULL)); - static void gst_freeverb_set_property (GObject * object, guint prop_id, const GValue * value, GParamSpec * pspec); static void gst_freeverb_get_property (GObject * object, guint prop_id, @@ -347,6 +344,10 @@ struct _GstFreeverbPrivate freeverb_allpass allpassR[numallpasses]; }; +G_DEFINE_TYPE_WITH_CODE (GstFreeverb, gst_freeverb, GST_TYPE_BASE_TRANSFORM, + G_ADD_PRIVATE (GstFreeverb) + G_IMPLEMENT_INTERFACE (GST_TYPE_PRESET, NULL)); + static void freeverb_revmodel_init (GstFreeverb * filter) { @@ -387,8 +388,6 @@ gst_freeverb_class_init (GstFreeverbClass * klass) GObjectClass *gobject_class; GstElementClass *element_class; - g_type_class_add_private (klass, sizeof (GstFreeverbPrivate)); - GST_DEBUG_CATEGORY_INIT (gst_freeverb_debug, "freeverb", 0, "freeverb element"); @@ -440,9 +439,7 @@ gst_freeverb_class_init (GstFreeverbClass * klass) static void gst_freeverb_init (GstFreeverb * filter) { - filter->priv = - G_TYPE_INSTANCE_GET_PRIVATE (filter, GST_TYPE_FREEVERB, - GstFreeverbPrivate); + filter->priv = gst_freeverb_get_instance_private (filter); gst_audio_info_init (&filter->info); filter->process = NULL; |