[gst-devel] Continuing work on DVD (long)

Benjamin Otte in7y118 at public.uni-hamburg.de
Fri Jan 30 10:24:02 CET 2004


On Fri, 30 Jan 2004, Martin Soto wrote:

> The question is, how do I go implementing this stuff?  Is there any
> example of private events being used in gst-plugins?  Additionally, in
> order to communicate with the actual subpicture decoder, I'd rather
> forward the events, since the capabilities don't actually fit the bill
> (color tables keep changing in DVDs, specially when moving out from and
> into menus).  Should I simply add some new event types to GstEvent, or
> define a new class (GstDVDEvent) somewhere, for interested elements to
> share?
>
GStreamer 0.10 will put all events into a GstStructure. Every new event we
define will already use this format. The event will be identified by the
name of the structure. So you're already free to define new events by
inventing a name for the structure (probably "dvd-colortable") and the
values and their names used in that structure.
It's kinda like GstCaps, except that you only use one structure and aren't
limited to specific GTypes in it.

(Though I just noticed some nice API for that is still missing.)

Benjamin





More information about the gstreamer-devel mailing list