summaryrefslogtreecommitdiffstats
path: root/sys/ximage/gstximagesrc.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/ximage/gstximagesrc.c')
-rw-r--r--sys/ximage/gstximagesrc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/ximage/gstximagesrc.c b/sys/ximage/gstximagesrc.c
index d7374398..2c8399ea 100644
--- a/sys/ximage/gstximagesrc.c
+++ b/sys/ximage/gstximagesrc.c
@@ -793,7 +793,7 @@ gst_ximagesrc_class_init (GstXImageSrcClass * klass)
"Show mouse pointer if XFixes extension enabled", TRUE,
G_PARAM_READWRITE));
- parent_class = g_type_class_ref (GST_TYPE_ELEMENT);
+ parent_class = g_type_class_peek_parent (klass);
push_class->create = gst_ximagesrc_create;
bc->get_caps = gst_ximagesrc_get_caps;