[vlc-devel] Patch for Bug#1288
Brian C. Wiles
bwiles_videolan at poldon.com
Thu Nov 1 21:07:12 CET 2007
Hi,
I finally fixed the VLM scheduling bug on Linux. Here's the patch.
Let me know if you have any questions.
-Brian
Index: src/input/vlm.c
===================================================================
--- src/input/vlm.c (revision 22921)
+++ src/input/vlm.c (working copy)
@@ -1049,7 +1049,11 @@
ftime( &tm );
return ((int64_t)tm.time) * 1000000 + ((int64_t)tm.millitm) * 1000;
#else
- return mdate();
+ struct timeval tv_date;
+
+ /* gettimeofday() cannot fail given &tv_date is a valid address */
+ (void)gettimeofday( &tv_date, NULL );
+ return (mtime_t) tv_date.tv_sec * 1000000 + (mtime_t) tv_date.tv_usec;
#endif
}
More information about the vlc-devel
mailing list