diff options
Diffstat (limited to 'libmpdemux')
-rw-r--r-- | libmpdemux/pnm.c | 2 | ||||
-rw-r--r-- | libmpdemux/realrtsp/rtsp.c | 2 |
2 files changed, 2 insertions, 2 deletions
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; } |