[vlc-devel] commit: Move VLC_HARD_MIN_SLEEP above gcc version #ifdef. It is also used in modules/audio_output/oss.c. (Ramiro Polla )
git version control
git at videolan.org
Tue Jan 12 17:36:37 CET 2010
vlc | branch: master | Ramiro Polla <ramiro.polla at gmail.com> | Tue Jan 12 13:45:08 2010 -0200| [01e2f27baf8a3990f62303e3399e25b8915c8ca5] | committer: Rémi Denis-Courmont
Move VLC_HARD_MIN_SLEEP above gcc version #ifdef. It is also used in modules/audio_output/oss.c.
Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=01e2f27baf8a3990f62303e3399e25b8915c8ca5
---
include/vlc_mtime.h | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/include/vlc_mtime.h b/include/vlc_mtime.h
index 7545f2d..60063ea 100644
--- a/include/vlc_mtime.h
+++ b/include/vlc_mtime.h
@@ -68,13 +68,14 @@ VLC_EXPORT( void, mwait, ( mtime_t date ) );
VLC_EXPORT( void, msleep, ( mtime_t delay ) );
VLC_EXPORT( char *, secstotimestr, ( char *psz_buffer, int secs ) );
+# define VLC_HARD_MIN_SLEEP 10000 /* 10 milliseconds = 1 tick at 100Hz */
+
#if defined (__GNUC__) \
&& ((__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3))
/* Linux has 100, 250, 300 or 1000Hz
*
* HZ=100 by default on FreeBSD, but some architectures use a 1000Hz timer
*/
-# define VLC_HARD_MIN_SLEEP 10000 /* 10 milliseconds = 1 tick at 100Hz */
# define VLC_SOFT_MIN_SLEEP 9000000 /* 9 seconds */
static
More information about the vlc-devel
mailing list