summaryrefslogtreecommitdiffstats
path: root/gst/y4m
diff options
context:
space:
mode:
Diffstat (limited to 'gst/y4m')
-rw-r--r--gst/y4m/gsty4mencode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/y4m/gsty4mencode.c b/gst/y4m/gsty4mencode.c
index a745ceaa..0f1854bc 100644
--- a/gst/y4m/gsty4mencode.c
+++ b/gst/y4m/gsty4mencode.c
@@ -122,7 +122,7 @@ gst_y4mencode_class_init (GstY4mEncodeClass * klass)
gobject_class = (GObjectClass *) klass;
gstelement_class = (GstElementClass *) klass;
- parent_class = g_type_class_ref (GST_TYPE_ELEMENT);
+ parent_class = g_type_class_peek_parent (klass);
gstelement_class->change_state = gst_y4mencode_change_state;