vlc | branch: master | Steve Lhomme <[email protected]> | Sat May  5 17:41:36 
2018 +0200| [7ff8ebd2da7857381279c8873ae1822fce561bdf] | committer: Steve Lhomme

vlmshell: internal time is in microseconds, not vlc_tick_t

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

 src/input/vlmshell.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/input/vlmshell.c b/src/input/vlmshell.c
index 1d3549213e..828b81bfe8 100644
--- a/src/input/vlmshell.c
+++ b/src/input/vlmshell.c
@@ -425,9 +425,9 @@ static int ExecuteControl( vlm_t *p_vlm, const char 
*psz_name, const int i_arg,
                 int64_t i_new_time;
 
                 if( strstr( psz_argument, "ms" ) )
-                    i_new_time =  1000 * (int64_t)atoi( psz_argument );
+                    i_new_time = INT64_C(1000) * atoi( psz_argument );
                 else
-                    i_new_time = vlc_tick_from_sec(atoi( psz_argument ));
+                    i_new_time = INT64_C(1000000) * atoi( psz_argument );
 
                 if( b_relative )
                 {

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to