[vlc-commits] vlm: store dates as time_t / seconds

Rémi Denis-Courmont git at videolan.org
Tue May 24 21:20:53 CEST 2016


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon May 23 21:28:39 2016 +0300| [a07a959f533bc940ae70155ad6928e678f6558f7] | committer: Rémi Denis-Courmont

vlm: store dates as time_t / seconds

There was no point multiplying and dividing by CLOCK_FREQ all the time.
VLM never had sub-second precision.

Also use div() as appropriate.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a07a959f533bc940ae70155ad6928e678f6558f7
---

 src/input/vlm.c          |   54 ++++++++++---------------
 src/input/vlm_internal.h |    7 ++--
 src/input/vlmshell.c     |   99 ++++++++++++++++++++++------------------------
 3 files changed, 71 insertions(+), 89 deletions(-)

Diff:   http://git.videolan.org/gitweb.cgi/vlc.git/?a=commitdiff;h=a07a959f533bc940ae70155ad6928e678f6558f7


More information about the vlc-commits mailing list