summaryrefslogtreecommitdiffstats
path: root/gst/smoothwave/gstsmoothwave.c
diff options
context:
space:
mode:
Diffstat (limited to 'gst/smoothwave/gstsmoothwave.c')
-rw-r--r--gst/smoothwave/gstsmoothwave.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gst/smoothwave/gstsmoothwave.c b/gst/smoothwave/gstsmoothwave.c
index d544fc7d..38c1f5fd 100644
--- a/gst/smoothwave/gstsmoothwave.c
+++ b/gst/smoothwave/gstsmoothwave.c
@@ -139,7 +139,8 @@ gst_smoothwave_class_init (GstSmoothWaveClass * klass)
gobject_class = (GObjectClass *) klass;
element_class = (GstElementClass *) klass;
- parent_class = g_type_class_ref (GST_TYPE_ELEMENT);
+ parent_class = g_type_class_peek_parent (klass);
+
gobject_class->dispose = gst_smoothwave_dispose;
element_class->change_state = gst_sw_change_state;