[gst-devel] GstClockTime
Joshua N Pritikin
vishnu at pobox.com
Wed Aug 7 20:30:03 CEST 2002
On Wed, Aug 07, 2002 at 10:00:48PM +0200, Ronald Bultje wrote:
> On Wed, 2002-08-07 at 18:11, Joshua N Pritikin wrote:
> > i notice that GstClockTime is typedef'd to guint64. Why not gint64
> > (signed)? time_t is signed. struct timeval is signed. Unsigned math
> > is a pain because we always have to worry about underflow.
>
> GstClockTime is intended for 'time-from-start-of-movie', so it starts at
> 0 and increments from there. If you want differences in time, you would
> use gint64 (as you mentioned), not GstClocktime, which is intended only
> for use as 'media timeoffset from beginning of media'.
If it is safe to cast from GstClockTime to GstClockTimeDiff then i don't
understand why have two different types.
--
Victory to the Divine Mother!! after all,
http://sahajayoga.org http://why-compete.org
More information about the gstreamer-devel
mailing list