win32: wait for timer completion when rescheduling
authorRémi Denis-Courmont <remi@remlab.net>
Sat, 28 May 2016 13:39:12 +0000 (16:39 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Sat, 28 May 2016 13:39:12 +0000 (16:39 +0300)
src/win32/thread.c

index d92df84..2480f9e 100644 (file)
@@ -1067,7 +1067,7 @@ void vlc_timer_schedule (vlc_timer_t timer, bool absolute,
     if (timer->handle != INVALID_HANDLE_VALUE)
     {
 #if !VLC_WINSTORE_APP
-        DeleteTimerQueueTimer (NULL, timer->handle, NULL);
+        DeleteTimerQueueTimer (NULL, timer->handle, INVALID_HANDLE_VALUE);
 #endif
         timer->handle = INVALID_HANDLE_VALUE;
     }