GNOME Bugzilla – Bug 337365
plugins should use g_type_class_peek_parent() instead of g_type_class_ref()
Last modified: 2006-04-08 21:05:46 UTC
replace parent_class = g_type_class_ref (GST_TYPE_ELEMENT); with g_type_class_refparent_class = g_type_class_peek_parent (klass);
replace parent_class = g_type_class_ref (GST_TYPE_ELEMENT); with parent_class = g_type_class_peek_parent (klass);
Just for information, the 2nd avoids aquiring the type_rw_lock. I am not sure if it is simpler though.
Fixed in CVS. As Tim pointed out, another advantage of the 2nd is that one can't mistype the G_TYPE_XXX arg.