[gstreamer-bugs] [Bug 459466] double memory usage for pluginfeature names

GStreamer (bugzilla.gnome.org) bugzilla-daemon at bugzilla.gnome.org
Mon Jul 30 10:33:27 PDT 2007


If you have any questions why you received this email, please see the text at
the end of this email. Replies to this email are NOT read, please see the text
at the end of this email. You can add comments to this bug at:
  http://bugzilla.gnome.org/show_bug.cgi?id=459466

  GStreamer | gstreamer (core) | Ver: HEAD CVS




------- Comment #8 from Stefan Kost (gstreamer, gtkdoc dev)  2007-07-30 17:33 UTC -------
Jan, please have a look at the patch, its not big. Each plugin-feature has a
name field which is the same as the GstObject::name. The patch avoids the copy,
but keeps a pointer to the string in GstObject. What David pointed out is if I
understand right, that the GstObject::name should be immutable. The name-ptr is
also used to locate plugin features. My suggestion was to make sure the
plugin-feature belong to the registry object (parentize). Then GstObject makes
sure the name can't change.


-- 
See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received
this email, why you can't respond via email, how to stop receiving
emails (or reduce the number you receive), and how to contact someone
if you are having problems with the system.

You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=459466.




More information about the Gstreamer-bugs mailing list