[vlc-devel] [PATCH 8/8] skins2: avoid vlc_tick_t conversion from hardcoded values
Steve Lhomme
robux4 at ycbcr.xyz
Thu Aug 13 14:12:21 CEST 2020
---
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 81b4893e166..7f7c49def54 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;
--
2.26.2
More information about the vlc-devel
mailing list