[vlc-devel] Patch for VLM Scheduling on Linux

Brian C. Wiles bwiles_videolan at poldon.com
Fri Oct 26 05:59:53 CEST 2007


Hi,

  This patch fixes a bug that prevents VLM scheduling from working on 
Linux (Bug #1288).  Feel free to contact me with any questions.

    -Brian

Index: src/misc/mtime.c
===================================================================
--- src/misc/mtime.c	(revision 22813)
+++ src/misc/mtime.c	(working copy)
@@ -154,10 +154,8 @@
 #if defined (HAVE_CLOCK_NANOSLEEP)
     struct timespec ts;
 
-    /* Try to use POSIX monotonic clock if available */
-    if( clock_gettime( CLOCK_MONOTONIC, &ts ) == EINVAL )
-        /* Run-time fallback to real-time clock (always available) */
-        (void)clock_gettime( CLOCK_REALTIME, &ts );
+    /* Use real-time clock (always available) */
+    (void)clock_gettime( CLOCK_REALTIME, &ts );
 
     res = ((mtime_t)ts.tv_sec * (mtime_t)1000000)
            + (mtime_t)(ts.tv_nsec / 1000);




More information about the vlc-devel mailing list