Timestamp problem...

Edward Hervey bilboed at bilboed.com
Mon Dec 9 04:19:22 PST 2013


On Mon, 2013-12-09 at 12:41 +0100, Eric Trousset wrote:
> Concerning the clock I now have one ok. Just the first time the create
> function is called, and the state is still PAUSED, I have no clock.
> What should I do in this case?

  Clocks are only chosen/distributed when the pipeline goes from PAUSED
to PLAYING. Furthermore the clocks are only guaranteed to return a
(monotonically increasing) value in PLAYING. So until you are in
PLAYING, you cannot use the clock.

    Edward

> 
> Regards, 
> Eric
> 
> > -----Original Message-----
> > From: Sebastian Dröge [mailto:sebastian at centricular.com]
> > Sent: mercredi 27 novembre 2013 15:54
> > To: Discussion of the development of and with GStreamer
> > Subject: Re: Timestamp problem...
> > 
> > On Mi, 2013-11-27 at 14:29 +0100, Eric Trousset wrote:
> > > I managed to fix my media playback issue, and now my src has a clock. I just
> > added a bus watch.
> > 
> > The clock distribution is independent from any bus watches on the pipeline.
> > What exactly did you change? Really just add a bus watch for the bus of the
> > pipeline? That sounds wrong.
> > 
> > Can you provide some code to show what you're doing?
> > 
> > > So now I am just missing the base_time.
> > 
> > That's distributed to elements by GstBin/GstPipeline when it goes to
> > PLAYING state. Is it always GST_CLOCK_TIME_NONE for you, no matter
> > when you get it?
> > 
> > Also in your previous example, use gst_element_get_clock() and
> > gst_element_get_base_time() or lock the GST_OBJECT_LOCK() when using
> > the macros to access them.
> > 
> > --
> > Sebastian Dröge <sebastian at centricular.com> Centricular Ltd -
> > http://www.centricular.com Expertise, Straight from the Source
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

-- 
Edward Hervey
bilboed at bilboed.com



More information about the gstreamer-devel mailing list