[vlc-devel] commit: none-sematic changes: (Sigmund Augdal Helberg )

git version control git at videolan.org
Mon Nov 24 15:06:37 CET 2008


vlc | branch: 0.8.6-bugfix | Sigmund Augdal Helberg <sigmunau at videolan.org> | Thu Mar  1 00:06:21 2007 +0000| [47b1a452aade6b9d03969bec8f03a00e44a4d276] | committer: Jean-Paul Saman 

none-sematic changes:
clock.c: replace a magic number with the appropriate constant

cherry-picked from: 13ec57548cb99619b28d5dadc9c87a258ee9d9cf

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

 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 143cfa9..a9d304e 100644
--- a/include/vlc_input.h
+++ b/include/vlc_input.h
@@ -310,7 +310,7 @@ enum input_state_e
  */
 #define INPUT_RATE_DEFAULT  1000
 #define INPUT_RATE_MIN       125            /* Up to 8/1 */
-#define INPUT_RATE_MAX      8000            /* Up to 1/8 */
+#define INPUT_RATE_MAX     32000            /* Up to 1/32 */
 
 /* input_source_t: gathers all information per input source */
 typedef struct
diff --git a/src/input/clock.c b/src/input/clock.c
index 1a09601..1f1af90 100644
--- a/src/input/clock.c
+++ b/src/input/clock.c
@@ -93,7 +93,7 @@ static mtime_t ClockToSysdate( input_thread_t *p_input,
                         * (mtime_t)p_input->i_rate
                         * (mtime_t)300;
         i_sysdate /= 27;
-        i_sysdate /= 1000;
+        i_sysdate /= INPUT_RATE_DEFAULT;
         i_sysdate += (mtime_t)cl->sysdate_ref;
     }
 




More information about the vlc-devel mailing list