Commit 80d3a7a9 authored by Steve Lhomme's avatar Steve Lhomme Committed by Rémi Denis-Courmont

win32: CreateTimerQueueTimer and DeleteTimerQueueTimer not available on Winstore

Signed-off-by: default avatarRémi Denis-Courmont <remi@remlab.net>
parent ea5bd4a4
......@@ -961,8 +961,10 @@ int vlc_timer_create (vlc_timer_t *id, void (*func) (void *), void *data)
void vlc_timer_destroy (vlc_timer_t timer)
{
#if !VLC_WINSTORE_APP
if (timer->handle != INVALID_HANDLE_VALUE)
DeleteTimerQueueTimer (NULL, timer->handle, INVALID_HANDLE_VALUE);
#endif
free (timer);
}
......@@ -971,7 +973,9 @@ 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);
#endif
timer->handle = INVALID_HANDLE_VALUE;
}
if (value == 0)
......@@ -982,8 +986,10 @@ void vlc_timer_schedule (vlc_timer_t timer, bool absolute,
value = (value + 999) / 1000;
interval = (interval + 999) / 1000;
#if !VLC_WINSTORE_APP
if (!CreateTimerQueueTimer (&timer->handle, NULL, vlc_timer_do, timer,
value, interval, WT_EXECUTEDEFAULT))
#endif
abort ();
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment