git.videolan.org
/
vlc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
b22e2a9
)
Oops
author
Rémi Denis-Courmont
<rdenis@simphalempin.com>
Sat, 6 Sep 2008 16:38:29 +0000
(19:38 +0300)
committer
Rémi Denis-Courmont
<rdenis@simphalempin.com>
Sat, 6 Sep 2008 16:38:29 +0000
(19:38 +0300)
include/vlc_mtime.h
patch
|
blob
|
history
diff --git
a/include/vlc_mtime.h
b/include/vlc_mtime.h
index
324c8eb
..
08262a7
100644
(file)
--- a/
include/vlc_mtime.h
+++ b/
include/vlc_mtime.h
@@
-96,9
+96,11
@@
void bad_msleep( mtime_t delay )
}
# define msleep( d ) \
- (__builtin_constant_p(d < VLC_HARD_MIN_SLEEP) \
+ ((__builtin_constant_p(d < VLC_HARD_MIN_SLEEP) \
+ && (d < VLC_HARD_MIN_SLEEP)) \
? impossible_msleep(d) \
- : (__builtin_constant_p(d < VLC_SOFT_MIN_SLEEP) \
+ : ((__builtin_constant_p(d < VLC_SOFT_MIN_SLEEP) \
+ && (d < VLC_SOFT_MIN_SLEEP)) \
? bad_msleep(d) \
: msleep(d)))
#endif