On Fri, 2008-06-20 at 02:48 +0000, Shenhong Wang wrote:

> I read chapter 14th of the Plugin Writer's guide again
> http://gstreamer.freedesktop.org/data/doc/gstreamer/head/pwg/html/section-time-data-flow.html
> but confused with the sentence:
> "First, the source element sends a discontinous event. This event
> carries information about the current relative time of the next
> sample. ". 

Looks like you found a chapter that hasn't been updated since the
GStreamer-0.8 days. You should ignore everything in there, it doesn't
apply any longer. (Please file a bug against the documentation for this,
if there isn't one already)


> Can anyone of you tell me how to send the discontinuous event in our
> source/parser element? thanks a lot!

In GStreamer-0.10 you need to send a NEWSEGMENT event instead. See the
design docs (in the gstreamer core source code under docs/design/) and
the API documentation for gst_event_new_new_segment_full() [1] for more
information.

Cheers
 -Tim

[1]
http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstEvent.html#gst-event-new-new-segment-full




-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Gstreamer-embedded mailing list
Gstreamer-embedded@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gstreamer-embedded

Reply via email to