gst/net/gstnetclientclock.c (do_linear_regression): Use all integer arithmetic. Retur...
authorAndy Wingo <wingo@pobox.com>
Fri, 18 Nov 2005 15:30:18 +0000 (15:30 +0000)
committerAndy Wingo <wingo@pobox.com>
Fri, 18 Nov 2005 15:30:18 +0000 (15:30 +0000)
commitfa09daa3d2ee4560f9853693cb28810298de2fa8
tree0146adc9a0d87cc264c13f0f8fbebbd0c75925ef
parentd32702193eaa330a393b5ae620d89198407c2c04
gst/net/gstnetclientclock.c (do_linear_regression): Use all integer arithmetic. Return the minimum of the domain, whi...

Original commit message from CVS:
2005-11-18  Andy Wingo  <wingo@pobox.com>

* gst/net/gstnetclientclock.c (do_linear_regression): Use all
integer arithmetic. Return the minimum of the domain, which can be
set as "internal" for gst_clock_set_calibration.
(gst_net_client_clock_observe_times): Call _set_calibration.
(gst_net_client_clock_new): Call _set_calibration instead of
rate_offset.

* check/net/gstnetclientclock.c (test_functioning): Use the right
adjustment api.

* gst/gstclock.h:
* gst/gstclock.c (gst_clock_get_calibration)
(gst_clock_set_calibration): New functions, obsolete the ones I
added yesterday. Doh. Precision issues mean we have to extrapolate
from a point in the more recent past than 1970.
(gst_clock_get_rate_offset, gst_clock_set_rate_offset): Mark as
obsolete.
(gst_clock_adjust_unlocked): Use the right calibration data.
ChangeLog
check/net/gstnetclientclock.c
gst/gstclock.c
gst/gstclock.h
gst/net/gstnetclientclock.c
libs/gst/net/gstnetclientclock.c
tests/check/libs/gstnetclientclock.c