[MOVED FROM GST-P-FARSIGHT] Use g_type_class_peek_parent instead of reffing the parent class directly

20071110050950-3e2dc-6d14ddd6ae3ceeeaa4e641b7b09613e442927f92.gz
This commit is contained in:
Olivier Crete 2007-11-10 05:09:50 +00:00 committed by Olivier Crête
parent ce88d245c3
commit d9511ab542
2 changed files with 2 additions and 2 deletions

View file

@ -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");
}

View file

@ -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");
}