[gst-embedded] Question on clocking and timestamp

Tim Müller tim.muller at collabora.co.uk
Fri Jun 20 01:48:54 PDT 2008


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







More information about the Gstreamer-embedded mailing list