[vlc-commits] skins2: avoid vlc_tick_t conversion from hardcoded values

Steve Lhomme git at videolan.org
Mon Aug 17 16:14:39 CEST 2020


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Thu Aug 13 07:42:57 2020 +0200| [a2a3765bf28cd652aaecc729ba0030ac369f864a] | committer: Steve Lhomme

skins2: avoid vlc_tick_t conversion from hardcoded values

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

 modules/gui/skins2/x11/x11_timer.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/gui/skins2/x11/x11_timer.cpp b/modules/gui/skins2/x11/x11_timer.cpp
index 81b4893e16..7f7c49def5 100644
--- a/modules/gui/skins2/x11/x11_timer.cpp
+++ b/modules/gui/skins2/x11/x11_timer.cpp
@@ -127,7 +127,7 @@ void X11TimerLoop::waitNextTimer()
     {
         if( nextDate > curDate )
         {
-            if( this->sleep( (nextDate - curDate ) / 1000 ) )
+            if( this->sleep( MS_FROM_VLC_TICK(nextDate - curDate ) ) )
             {
                 // The sleep has been interrupted: stop here
                 return;



More information about the vlc-commits mailing list