vlc | branch: master | Jean-Baptiste Kempf <[email protected]> | Sat Nov 15 
00:15:13 2014 +0100| [2c940ab8b69bf14788d6c48d6fcff4016488d0a0] | committer: 
Jean-Baptiste Kempf

Skins2: avoid integer overflow

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

 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 6f640c5..644eb7f 100644
--- a/modules/gui/skins2/x11/x11_timer.cpp
+++ b/modules/gui/skins2/x11/x11_timer.cpp
@@ -49,7 +49,7 @@ X11Timer::~X11Timer()
 
 void X11Timer::start( int delay, bool oneShot )
 {
-    m_interval = 1000 * delay;
+    m_interval = 1000LL * (mtime_t)delay;
     m_oneShot = oneShot;
     m_nextDate = mdate() + m_interval;
     m_pTimerLoop->addTimer( *this );

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to