]> git.sesse.net Git - vlc/commitdiff
none-sematic changes:
authorSigmund Augdal Helberg <sigmunau@videolan.org>
Thu, 1 Mar 2007 00:06:21 +0000 (00:06 +0000)
committerSigmund Augdal Helberg <sigmunau@videolan.org>
Thu, 1 Mar 2007 00:06:21 +0000 (00:06 +0000)
clock.c: replace a magic number with the appropriate constant
vlc_include.h: fix a comment to match reality

include/vlc_input.h
src/input/clock.c

index 0ed8fcdc1624c25aab65eab3d1fb41ecd476ce99..b43ba470c93a5d153e1ac5ac202a3ca81c665ced 100644 (file)
@@ -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
index a1e3af569e091d24e4c8dfff9a9461477c45b353..b9a9e844f92dd01d41fb1c9a04796b0ec8032241 100644 (file)
@@ -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;
     }