[vlc-commits] vlmshell: convert seconds to ticks using vlc_tick_from_sec()

Steve Lhomme git at videolan.org
Fri Jul 6 16:07:53 CEST 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Thu Jul  5 13:56:53 2018 +0200| [118d4190f125f7cd7048bf92717ed4bd83e36b1b] | committer: Steve Lhomme

vlmshell: convert seconds to ticks using vlc_tick_from_sec()

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

 src/input/vlmshell.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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



More information about the vlc-commits mailing list