[gst-devel] event handling in chain function?

Thomas Vander Stichele thomas at apestaart.org
Wed Mar 29 01:21:06 CEST 2006


On Tue, 2006-03-28 at 17:29 -0700, Brad Midgley wrote:
> Hi
> 
> I see the docs* talking about registering a separate function for
> accepting events, but in going through an encoder for gsm, I see event
> handling in the chain function using GST_IS_EVENT and GST_IS_BUFFER. Is
> one or the other of these preferred?

As a general guideline, you *should* *not* look at *any* element in -bad
for examples and how to write elements.  gsm is in -bad, and this is a
good reason why :)

If you want to compare docs against code, look for elements in core
first, then base, then good, then ugly.

Thomas






More information about the gstreamer-devel mailing list