[vlc-commits] core: replace hardcoded CLOCK_FREQ fractions by VLC_TICK_FROM_MS()
Steve Lhomme
git at videolan.org
Tue Jul 3 07:55:12 CEST 2018
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Tue Jul 3 07:52:25 2018 +0200| [83f118a2f9229c41f727054c5ff65c2576adeb46] | committer: Steve Lhomme
core: replace hardcoded CLOCK_FREQ fractions by VLC_TICK_FROM_MS()
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=83f118a2f9229c41f727054c5ff65c2576adeb46
---
src/input/demux_chained.c | 2 +-
src/test/timer.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/input/demux_chained.c b/src/input/demux_chained.c
index 7dba40a8f9..a3323b68fa 100644
--- a/src/input/demux_chained.c
+++ b/src/input/demux_chained.c
@@ -87,7 +87,7 @@ static void *vlc_demux_chained_Thread(void *data)
dc->stats.time = newtime;
vlc_mutex_unlock(&dc->lock);
- next_update = vlc_tick_now() + (CLOCK_FREQ / 4);
+ next_update = vlc_tick_now() + VLC_TICK_FROM_MS(250);
}
while (demux_Demux(demux) > 0);
diff --git a/src/test/timer.c b/src/test/timer.c
index d7aef01772..8369d1636a 100644
--- a/src/test/timer.c
+++ b/src/test/timer.c
@@ -85,7 +85,7 @@ int main (void)
printf ("%u iterations in %"PRId64" us\n", data.count, ts);
data.count = 0;
vlc_mutex_unlock (&data.lock);
- assert(ts >= (CLOCK_FREQ / 10));
+ assert(ts >= VLC_TICK_FROM_MS(100));
vlc_timer_schedule (data.timer, false, 0, 0);
More information about the vlc-commits
mailing list