[vlc-commits] vlmshell: internal time is in microseconds, not vlc_tick_t
Steve Lhomme
git at videolan.org
Thu Sep 20 12:44:06 CEST 2018
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | 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 )
{
More information about the vlc-commits
mailing list