]> git.sesse.net Git - vlc/commitdiff
skins2(Win): fix a timer issue
authorErwan Tulou <erwan10@videolan.org>
Sun, 27 Dec 2009 10:55:30 +0000 (11:55 +0100)
committerErwan Tulou <erwan10@videolan.org>
Sun, 27 Dec 2009 11:03:33 +0000 (12:03 +0100)
Win32 API SetTimer is not a oneshot timer.

modules/gui/skins2/win32/win32_timer.cpp

index 7ebd6481197ef03a8c5b52037c61fb7819813fe3..93411da17b171886b9ffc11f9612a45236ed3678 100644 (file)
@@ -70,11 +70,9 @@ void Win32Timer::execute()
     // Execute the callback
     m_rCommand.execute();
 
-    // Restart the timer if needed
-    if( ! m_oneShot )
-    {
-        start( m_interval, m_oneShot );
-    }
+    // Stop the timer if requested
+    if( m_oneShot )
+        stop();
 }
 
 #endif