none-sematic changes:

clock.c: replace a magic number with the appropriate constant
vlc_include.h: fix a comment to match reality
parent 9c1758ae
...@@ -327,7 +327,7 @@ enum input_state_e ...@@ -327,7 +327,7 @@ enum input_state_e
*/ */
#define INPUT_RATE_DEFAULT 1000 #define INPUT_RATE_DEFAULT 1000
#define INPUT_RATE_MIN 125 /* Up to 8/1 */ #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 */ /* i_update field of access_t/demux_t */
#define INPUT_UPDATE_NONE 0x0000 #define INPUT_UPDATE_NONE 0x0000
......
...@@ -92,7 +92,7 @@ static mtime_t ClockToSysdate( input_thread_t *p_input, ...@@ -92,7 +92,7 @@ static mtime_t ClockToSysdate( input_thread_t *p_input,
* (mtime_t)p_input->p->i_rate * (mtime_t)p_input->p->i_rate
* (mtime_t)300; * (mtime_t)300;
i_sysdate /= 27; i_sysdate /= 27;
i_sysdate /= 1000; i_sysdate /= INPUT_RATE_DEFAULT;
i_sysdate += (mtime_t)cl->sysdate_ref; i_sysdate += (mtime_t)cl->sysdate_ref;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment