From ac2c5730ceacc16c961618de0a35a5f01ff6d94d Mon Sep 17 00:00:00 2001 From: faust3 Date: Sat, 3 Sep 2005 10:58:52 +0000 Subject: replace sleep with usec_sleep, required for recent mingw versions, patch by Robert Swain git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16373 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpdemux/pnm.c | 2 +- libmpdemux/realrtsp/rtsp.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'libmpdemux') diff --git a/libmpdemux/pnm.c b/libmpdemux/pnm.c index 4861b3d236..e8a6318df2 100644 --- a/libmpdemux/pnm.c +++ b/libmpdemux/pnm.c @@ -225,7 +225,7 @@ static int rm_write(int s, const char *buf, int len) { #else if ((timeout>0) && ((errno == EAGAIN) || (WSAGetLastError() == WSAEINPROGRESS))) { #endif - sleep (1); timeout--; + usec_sleep (1000000); timeout--; } else return -1; } diff --git a/libmpdemux/realrtsp/rtsp.c b/libmpdemux/realrtsp/rtsp.c index 6247ca1baa..cee69f81be 100644 --- a/libmpdemux/realrtsp/rtsp.c +++ b/libmpdemux/realrtsp/rtsp.c @@ -181,7 +181,7 @@ static int write_stream(int s, const char *buf, int len) { #else if ((timeout>0) && ((errno == EAGAIN) || (WSAGetLastError() == WSAEINPROGRESS))) { #endif - sleep (1); timeout--; + usec_sleep (1000000); timeout--; } else return -1; } -- cgit v1.2.3