From: Wim T. <wt...@us...> - 2002-06-02 13:24:49
|
CVS Root: /cvsroot/gstreamer Module: gstreamer Changes by: wtay Date: Sun Jun 02 2002 06:24:48 PDT Log message: Make clock use nanoseconds Modified files: gst : gstclock.h Links: http://cvs.sf.net/cgi-bin/viewcvs.cgi/gstreamer/gstreamer/gst/gstclock.h.diff?r1=1.10&r2=1.11 ====Begin Diffs==== Index: gstclock.h =================================================================== RCS file: /cvsroot/gstreamer/gstreamer/gst/gstclock.h,v retrieving revision 1.10 retrieving revision 1.11 diff -u -d -r1.10 -r1.11 --- gstclock.h 26 May 2002 21:54:25 -0000 1.10 +++ gstclock.h 2 Jun 2002 13:24:35 -0000 1.11 @@ -45,7 +45,9 @@ typedef gint64 GstClockTimeDiff; typedef gpointer GstClockID; -#define GST_SECOND ((guint64)G_USEC_PER_SEC) +#define GST_CLOCK_TIME_NONE ((guint64)-1) + +#define GST_SECOND ((guint64)G_USEC_PER_SEC * 1000LL) #define GST_MSECOND ((guint64)GST_SECOND/1000LL) #define GST_USECOND ((guint64)GST_SECOND/1000000LL) #define GST_NSECOND ((guint64)GST_SECOND/1000000000LL) @@ -55,7 +57,7 @@ #define GST_TIME_TO_TIMEVAL(t,tv) \ G_STMT_START { \ (tv).tv_sec = (t) / GST_SECOND; \ - (tv).tv_usec = ((t) / GST_USECOND) % GST_SECOND; \ + (tv).tv_usec = ((t) / GST_USECOND) % GST_MSECOND; \ } G_STMT_END typedef struct _GstClock GstClock; |