[vlc-devel] commit: Oops ( Rémi Denis-Courmont )

git version control git at videolan.org
Sat Sep 6 18:35:24 CEST 2008


vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Sat Sep  6 19:38:29 2008 +0300| [6db8a5e028fd4e7d97b95c7b945c13230f15a40b] | committer: Rémi Denis-Courmont 

Oops

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6db8a5e028fd4e7d97b95c7b945c13230f15a40b
---

 include/vlc_mtime.h |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/include/vlc_mtime.h b/include/vlc_mtime.h
index 324c8eb..08262a7 100644
--- 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




More information about the vlc-devel mailing list