Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Steve Lhomme
VLC
Commits
113ded6a
Commit
113ded6a
authored
May 28, 2016
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
win32: fix delay rounding error
Delay must be rounded up, not down.
parent
5daf669c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/win32/thread.c
src/win32/thread.c
+2
-2
No files found.
src/win32/thread.c
View file @
113ded6a
...
...
@@ -301,7 +301,7 @@ void vlc_cond_wait(vlc_cond_t *wait, vlc_mutex_t *lock)
int
vlc_cond_timedwait
(
vlc_cond_t
*
wait
,
vlc_mutex_t
*
lock
,
mtime_t
deadline
)
{
return
vlc_cond_wait_delay
(
wait
,
lock
,
(
deadline
-
mdate
())
/
1000
);
return
vlc_cond_wait_delay
(
wait
,
lock
,
(
deadline
+
999
-
mdate
())
/
1000
);
}
int
vlc_cond_timedwait_daytime
(
vlc_cond_t
*
wait
,
vlc_mutex_t
*
lock
,
...
...
@@ -771,7 +771,7 @@ void mwait (mtime_t deadline)
vlc_testcancel
();
while
((
delay
=
(
deadline
-
mdate
()))
>
0
)
{
delay
/
=
1000
;
delay
=
(
delay
+
999
)
/
1000
;
if
(
unlikely
(
delay
>
0x7fffffff
))
delay
=
0x7fffffff
;
vlc_Sleep
(
delay
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment