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

GStreamer (bugzilla.gnome.org) bugzilla-daemon at bugzilla.gnome.org
Tue Jan 8 03:20:32 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 #11 from Sebastian Dröge  2008-01-08 11:20 UTC -------
For the pad templates we could do the following to move that to class_init now
already:

- copy the pad template list in GstElement's base_init (are GstPadTemplate
meant to be immutable? in that case we can simply ref them in the new list,
otherwise we have to copy them too)
- change _add_pad_template() so when it encounters a pad template name that was
already added it also checks whether the pad template is completely the same
and if so ignore the second addition silently, otherwise complain as we
currently do.

This would allow to move it now already without breaking compatibility... what
do you think?


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