[gst-devel] Re: [gst-cvs] thomasvs gstreamer: gstreamer/docs/random/ds/

Ronald Bultje rbultje at ronald.bitfreak.net
Thu Jul 8 12:02:06 CEST 2004


Hi,

On Thu, 8 Jul 2004, Thomas Vander Stichele wrote:
> On Thu, 2004-07-08 at 19:30, Ronald Bultje wrote:
> > On Thu, 8 Jul 2004, Thomas Vander Stichele wrote:
> > > + - make gst_bin_get_list virtual so subclasses can override it (e.g.
> > > +   gst-play which contains an internal thread not inside the bin that is
> > > +   gstplay)
> >
> > Isn't that a gstplay bug? If it pretends to be a bin, it should behave
> > like one.
>
[..]
> There are other reasons why a bin should be able to virtualize this
> function - if add and remove are virtualized, then so should get_list be
> since a bin can very well chose to override add and remove in such a way
> that they're not actually inside the bin.

Those are signallers, if I'm correct. So they're called to let the class
know that a child was removed/added. The child class is required to call
parent_class->add_element() in its own add_element() implementation, and
the same goes for remove.

Note that I'm not trying to be a pain, I'm just trying to explain why it
works the way it does. ;).

Ronald





More information about the gstreamer-devel mailing list