[Fwd: Re: [gst-devel] Gstreamer design questions]
David Schleef
ds at schleef.org
Fri Mar 19 13:08:08 CET 2004
On Fri, Mar 19, 2004 at 11:08:14AM +0200, Andy Wingo wrote:
> > How can I add a custom event? Will I have to rebuild everything then?
> > Will I have to add code to each and every plug-in then?
>
> You can't, unfortunately.
It is possible, but highly discouraged. There's no registry for
custom event types, so you run the risk of clashing with all those
other plugin writers out there who are using custom events. (I.e.,
nobody.)
> In the current system, GstData isn't very
> extensible (you can't create "subclasses" of GstData outside the gst
> source tree).
It is possible, and actually quite easy to subclass GstData. See
gst-plugins/gst/debug/efence.c. Everyone who looks at this code
will think "Why did they _ever_ do it this way?", because it's a
very non-obvious object model. Well, I wonder why it was done that
way, too. It will probably be changed in 0.9.
dave...
More information about the gstreamer-devel
mailing list