[gst-devel] Passing Custom Events

Wim Taymans wim at fluendo.com
Wed Jan 26 06:29:04 CET 2005

On Wed, 2005-01-26 at 14:05 +0100, Benjamin Otte wrote:
> On Tue, 25 Jan 2005, Thirupathiah Annapureddy wrote:
> > Hi All,
> > I have developed two basic elements src and decoder specific to our
> > hw. They use normal gst provided logic to pass data when they are
> > connected to non-custom elements. When both of these are connected, i
> > want to exchange some unique information between them so that data
> > flow is handled entirely at hw level.
> > I thought of sending a custom event from one element to another
> > element to exchange this unique information. To create a custom event,
> > should i extend GstEventType or i can use any event# higher than
> >
> If you want to create custom events, you should use GST_EVENT_ANY and use
> a unique name for the GstStructure in that event.
> Off topic: Your idea of extending the enum doesn't work, because if
> someone else has the same idea, you get a collision.
> OTOH I'm not sure you want to use events here. Wouldn't it be better to
> negotiate the link between the two elements to a different format (say
> "application/hw-passed-stuff") and just pass control information over
> that link?

Indeed, this is the solution I would suggest as well, pass the control
information about where the buffer is using the buffer passing
mechanisms instead of using custom events. You can define your own
layout for the buffer contents and define a unique caps for that layout.
This will also make sure that your element is not linked to an element
that does not understand this control information. There is no such
guarantee for events.


> Benjamin
> -------------------------------------------------------
> This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
> Tool for open source databases. Create drag-&-drop reports. Save time
> by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
> Download a FREE copy at http://www.intelliview.com/go/osdn_nl
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Wim Taymans <wim at fluendo.com>

More information about the gstreamer-devel mailing list