GST system clock question

Nicolas Dufresne nicolas.dufresne at collabora.co.uk
Mon Apr 2 11:32:54 PDT 2012


Le vendredi 30 mars 2012 à 13:26 -0700, smaynard a écrit : 
> My project used to use 0.10.22 and assumed the system clock was always
> GST_CLOCK_TYPE_REALTIME.
> 
> We have recently updated to 0.10.35 and found that the default clock type is
> now GST_CLOCK_TYPE_MONOTONIC.
> 
> We were able to leave our code alone on Linux by simply setting the
> clock-type of the system clock to be GST_CLOCK_TYPE_REALTIME.  However, on
> win32, it appears to still behave in a monotonic fashion. Is this expected? 
> i.e. will we have to rewrite our code to work with a monotonic system clock
> so that it operates properly on both Linux and Win32?

I'm not sure what you refer too by rewriting code, it depends on what
this code is. Monotonic time source is a clock that is never adjusted,
thus always goes forward. While the real time is (most of the time)
synchronized with time server, and frequently adjusted (can jump
backward). If you have code that handle time jump, it should just work
with a clock that is monotonic.

cheers,
Nicolas



More information about the gstreamer-devel mailing list