From 13ec57548cb99619b28d5dadc9c87a258ee9d9cf Mon Sep 17 00:00:00 2001 From: Sigmund Augdal Helberg Date: Thu, 1 Mar 2007 00:06:21 +0000 Subject: [PATCH] none-sematic changes: clock.c: replace a magic number with the appropriate constant vlc_include.h: fix a comment to match reality --- include/vlc_input.h | 2 +- src/input/clock.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/vlc_input.h b/include/vlc_input.h index 0ed8fcdc16..b43ba470c9 100644 --- a/include/vlc_input.h +++ b/include/vlc_input.h @@ -327,7 +327,7 @@ enum input_state_e */ #define INPUT_RATE_DEFAULT 1000 #define INPUT_RATE_MIN 125 /* Up to 8/1 */ -#define INPUT_RATE_MAX 32000 /* Up to 1/8 */ +#define INPUT_RATE_MAX 32000 /* Up to 1/32 */ /* i_update field of access_t/demux_t */ #define INPUT_UPDATE_NONE 0x0000 diff --git a/src/input/clock.c b/src/input/clock.c index a1e3af569e..b9a9e844f9 100644 --- a/src/input/clock.c +++ b/src/input/clock.c @@ -92,7 +92,7 @@ static mtime_t ClockToSysdate( input_thread_t *p_input, * (mtime_t)p_input->p->i_rate * (mtime_t)300; i_sysdate /= 27; - i_sysdate /= 1000; + i_sysdate /= INPUT_RATE_DEFAULT; i_sysdate += (mtime_t)cl->sysdate_ref; } -- 2.39.5