[vlc-devel] commit: skins2(Win): fix a timer issue (Erwan Tulou )
git version control
git at videolan.org
Sun Dec 27 12:05:04 CET 2009
vlc | branch: master | Erwan Tulou <erwan10 at videolan.org> | Sun Dec 27 11:55:30 2009 +0100| [b8181acf9ab038bb921ae84eded944d2092bce48] | committer: Erwan Tulou
skins2(Win): fix a timer issue
Win32 API SetTimer is not a oneshot timer.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b8181acf9ab038bb921ae84eded944d2092bce48
---
modules/gui/skins2/win32/win32_timer.cpp | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
diff --git a/modules/gui/skins2/win32/win32_timer.cpp b/modules/gui/skins2/win32/win32_timer.cpp
index 7ebd648..93411da 100644
--- a/modules/gui/skins2/win32/win32_timer.cpp
+++ b/modules/gui/skins2/win32/win32_timer.cpp
@@ -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
More information about the vlc-devel
mailing list