[gst-devel] DVD Events

Benjamin Otte in7y118 at public.uni-hamburg.de
Tue Mar 23 10:15:10 CET 2004


On Tue, 23 Mar 2004, Jan Schmidt wrote:

> <quote who="David I. Lehn">
> > I don't think we should be adding media specific code to the core such
> > as events named "GST_EVENT_DVD".  There are opposing forces of needing
> > something to handle things like dvd specific events and the goal of
> > keeping event types to a minimum.  I think if a new event type is needed
> > it should be more generic but somehow restricted in use.  Something like
> > GST_EVENT_CUSTOM or _GENERIC look like they might fit but they are so
> > open ended that they could be abused.  I'm not sure what the answer is
> > for custom events.
>
> I agree - the core shouldn't need media-specific events. Just that Martin
> and I haven't come up with a better answer yet.
>
In the future (read: 0.9) there will only be what you call "navigation
events". The reason: It makes events serializable. Events will be
differentiated by the structure's name. So the eos event will contain a
structure = gst_structure_new ("eos", NULL); for example.
Any new event should follow that already, so we don't need to fix that
much later on.
The enum should be completely ignored for all structure related events.
But to make it fit with the enum name, you can add
#define GST_EVENT_ANY GST_EVENT_NAVIGATION
below the enum :)

To avoid people adding random events to the pipeline, we might change the
default behaviour for event handlers to just drop unknown events and
require specifying the allowed events per mime type.

Benjamin






More information about the gstreamer-devel mailing list