changeset 2265:8826be64fdbf

sleep stuff moved to linux/timer
author arpi
date Fri, 19 Oct 2001 00:15:49 +0000
parents 7851375ea156
children c2ed1e5742ed
files mplayer.c
diffstat 1 files changed, 0 insertions(+), 13 deletions(-) [+]
line wrap: on
line diff
--- a/mplayer.c	Thu Oct 18 22:27:13 2001 +0000
+++ b/mplayer.c	Fri Oct 19 00:15:49 2001 +0000
@@ -84,19 +84,6 @@
 void find_sub(subtitle* subtitles,int key);
 #endif
 
-static int
-usec_sleep(int usec_delay)
-{
-#if	1
-    struct timespec ts;
-    ts.tv_sec  =  usec_delay / 1000000;
-    ts.tv_nsec = (usec_delay % 1000000) * 1000;
-    return nanosleep(&ts, NULL);
-#else
-    return usleep(usec_delay);
-#endif
-}
-
 //**************************************************************************//
 //             Config file
 //**************************************************************************//