[gst-devel] virtfunc dispatching

Ronald S. Bultje rbultje at ronald.bitfreak.net
Sat Nov 27 09:16:13 CET 2004


can someone explain me how queries, events and everything are
dispatched? I always assumed something simple and that's apparently not
the case.

I'd assume that you send events, queries and everything to the sink of a
pipeline () or to the pipeline bin. The pipeline bin will forward it
appropriately to whatever element handles it and return a value for the
whole stream. The sink will forward it and return a value for this
elementary stream.
However, from code, it appears it just sends stuff to the first element
in the world that implements a handler and returns that. Bins do nothing
at all. That doesn't sound right.

Now what I'd like to do in practice, is do a gst_element_query (playbin,
_POSITION, "chapter", &val);. Obviously, the query never arrives at my
DVD source because mpegdemux already returned FALSE. Same seems to be
true for events, too. How's this supposed to work?



Ronald S. Bultje <rbultje at ronald.bitfreak.net>

More information about the gstreamer-devel mailing list