mirror of
https://github.com/mpv-player/mpv
synced 2025-03-22 11:18:32 +00:00
sleep stuff moved to linux/timer
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2266 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
b975d4d30d
commit
6ab3523b14
13
mplayer.c
13
mplayer.c
@ -84,19 +84,6 @@ int quiet=0;
|
|||||||
void find_sub(subtitle* subtitles,int key);
|
void find_sub(subtitle* subtitles,int key);
|
||||||
#endif
|
#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
|
// Config file
|
||||||
//**************************************************************************//
|
//**************************************************************************//
|
||||||
|
Loading…
Reference in New Issue
Block a user