After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 337365 - plugins should use g_type_class_peek_parent() instead of g_type_class_ref()
plugins should use g_type_class_peek_parent() instead of g_type_class_ref()
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins
git master
Other Linux
: Normal normal
: 0.10.5
Assigned To: Stefan Sauer (gstreamer, gtkdoc dev)
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2006-04-05 13:52 UTC by Stefan Sauer (gstreamer, gtkdoc dev)
Modified: 2006-04-08 21:05 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Stefan Sauer (gstreamer, gtkdoc dev) 2006-04-05 13:52:46 UTC
replace
  parent_class = g_type_class_ref (GST_TYPE_ELEMENT);
with
  g_type_class_refparent_class = g_type_class_peek_parent (klass);
Comment 1 Wim Taymans 2006-04-06 13:32:04 UTC
replace
  parent_class = g_type_class_ref (GST_TYPE_ELEMENT);
with
  parent_class = g_type_class_peek_parent (klass);
Comment 2 Stefan Sauer (gstreamer, gtkdoc dev) 2006-04-08 17:20:45 UTC
Just for information, the 2nd avoids aquiring the type_rw_lock. I am not sure if it is simpler though.
Comment 3 Stefan Sauer (gstreamer, gtkdoc dev) 2006-04-08 21:05:46 UTC
Fixed in CVS. As Tim pointed out, another advantage of the 2nd is that one can't mistype the G_TYPE_XXX arg.