Commits on Source (3)
-
Steve Lhomme authored
The NTP time is basically time timespec_get(TIME_UTC) with bits shifted. vlc_tick_now is clock_gettime(CLOCK_MONOTONIC) also giving a timespec but not shifted. We don't need the the bit and EPOCH shifting.
961a977c -
Steve Lhomme authored
It is 16 but it's better not to hardcode the value. It's also more logical compared to the break condition of the loop.
271d5fc2 -
Steve Lhomme authored
It only locks in the (unlikely) case this function is called concurrently.
0e9a1033