[gstreamer-bugs] [Bug 491501] Reduce usage of base_init in GstElement subclasses

GStreamer (bugzilla.gnome.org) bugzilla-daemon at bugzilla.gnome.org
Wed Jan 2 23:22:17 PST 2008


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=491501

  GStreamer | gstreamer (core) | Ver: HEAD CVS




------- Comment #5 from Sebastian Dröge  2008-01-03 07:22 UTC -------
Bug #396774 talks about an approach of overwriting the element details in
subclasses but only some fields. If we want to allow this (and overwriting in
general) we could still move it from base_init to class_init:
gst_element_base_class_init() will copy the element details and the subclass
will change whatever it wants in class_init.

>From how I understand [0] this is how it should be done anyway, the class that
has the class structure field that contains something dynamic (and which has to
be copied) should care about doing whatever is necessary in base_init.

http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#GClassInitFunc


-- 
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=491501.




More information about the Gstreamer-bugs mailing list