[vlc-commits] lua: replace hardcoded timer delay value by a VLC_TICK expression

Steve Lhomme git at videolan.org
Thu Jul 5 15:04:33 CEST 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Thu Jul  5 14:38:41 2018 +0200| [655fd787b3c1da9cb1f3fb8102cc0098749b13db] | committer: Steve Lhomme

lua: replace hardcoded timer delay value by a VLC_TICK expression

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

 modules/lua/extension.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/lua/extension.c b/modules/lua/extension.c
index cc6bffc865..44357ebfd1 100644
--- a/modules/lua/extension.c
+++ b/modules/lua/extension.c
@@ -1201,7 +1201,7 @@ static void WatchTimerCallback( void *data )
             vlc_mutex_unlock( &p_ext->p_sys->command_lock );
             return;
         }
-        vlc_timer_schedule( p_ext->p_sys->timer, false, 100000, 0 );
+        vlc_timer_schedule( p_ext->p_sys->timer, false, VLC_TICK_FROM_MS(100), 0 );
     }
     else
     {
@@ -1213,7 +1213,7 @@ static void WatchTimerCallback( void *data )
             vlc_mutex_unlock( &p_ext->p_sys->command_lock );
             return;
         }
-        vlc_timer_schedule( p_ext->p_sys->timer, false, 100000, 0 );
+        vlc_timer_schedule( p_ext->p_sys->timer, false, VLC_TICK_FROM_MS(100), 0 );
     }
     vlc_mutex_unlock( &p_ext->p_sys->command_lock );
 }



More information about the vlc-commits mailing list