summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ext/mimic/gstmimdec.c2
-rw-r--r--ext/mimic/gstmimenc.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/ext/mimic/gstmimdec.c b/ext/mimic/gstmimdec.c
index f5d244cd..3568f9b1 100644
--- a/ext/mimic/gstmimdec.c
+++ b/ext/mimic/gstmimdec.c
@@ -134,7 +134,7 @@ gst_mimdec_class_init (GstMimDecClass *klass)
gobject_class->finalize = gst_mimdec_finalize;
- parent_class = g_type_class_ref (GST_TYPE_ELEMENT);
+ parent_class = g_type_class_peek_parent (klass);
GST_DEBUG_CATEGORY_INIT (mimdec_debug, "mimdec", 0, "Mimic decoder plugin");
}
diff --git a/ext/mimic/gstmimenc.c b/ext/mimic/gstmimenc.c
index 376b916b..1b1b9288 100644
--- a/ext/mimic/gstmimenc.c
+++ b/ext/mimic/gstmimenc.c
@@ -147,7 +147,7 @@ gst_mimenc_class_init (GstMimEncClass *klass)
gstelement_class = (GstElementClass*) klass;
gstelement_class->change_state = gst_mimenc_change_state;
- parent_class = g_type_class_ref (GST_TYPE_ELEMENT);
+ parent_class = g_type_class_peek_parent (klass);
GST_DEBUG_CATEGORY_INIT (mimenc_debug, "mimenc", 0, "Mimic encoder plugin");
}