[vlc-commits] oldrc: the value read from atoi is in seconds not mtime_t

Steve Lhomme git at videolan.org
Thu Jun 14 16:41:27 CEST 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Thu May 31 15:20:10 2018 +0200| [5bb86a0cb49cb85603a315c07c395dc2bface793] | committer: Steve Lhomme

oldrc: the value read from atoi is in seconds not mtime_t

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

 modules/control/oldrc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/control/oldrc.c b/modules/control/oldrc.c
index 8e3bdbb76a..12e2b05b70 100644
--- a/modules/control/oldrc.c
+++ b/modules/control/oldrc.c
@@ -983,7 +983,7 @@ static int Input( vlc_object_t *p_this, char const *psz_cmd,
         }
         else
         {
-            mtime_t t = atoi( newval.psz_string );
+            int t = atoi( newval.psz_string );
             var_SetInteger( p_input, "time", CLOCK_FREQ * t );
         }
         i_error = VLC_SUCCESS;



More information about the vlc-commits mailing list