netclock: Implement rate limits for polling and fix up skew limits
authorJan Schmidt <jan@centricular.com>
Thu, 15 Jan 2015 11:32:28 +0000 (22:32 +1100)
committerJan Schmidt <jan@centricular.com>
Wed, 21 Jan 2015 11:27:18 +0000 (22:27 +1100)
commit27997cb8a3393adeda96523e6311875a0e27ce09
tree4a3af5f3e8bef0ee60af3b2b36c53438c65c028b
parent81d613694c993e6cce55289a66554ad28bfba923
netclock: Implement rate limits for polling and fix up skew limits

Add the minimum-update-interval property to the clock, with a default
of 50ms and don't send polling requests faster than that. That helps to
ensure we spread the initial observations out a little - startup takes
a little longer, but tracking is more stable.

Move the discont skew limiting code inside an if statement, so that
it's only done when the linear regression succeeds and the clock
parameters might actually change.
libs/gst/net/gstnetclientclock.c