changeset 16372:b313a38c69cb

replace sleep with usec_sleep, required for recent mingw versions, patch by Robert Swain <robert.swain at gmail.com>
author faust3
date Sat, 03 Sep 2005 10:58:52 +0000
parents f3e6984c415c
children 950389ce8795
files libmpcodecs/ad_acm.c libmpdemux/pnm.c libmpdemux/realrtsp/rtsp.c
diffstat 3 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/ad_acm.c	Sat Sep 03 10:27:22 2005 +0000
+++ b/libmpcodecs/ad_acm.c	Sat Sep 03 10:58:52 2005 +0000
@@ -146,7 +146,7 @@
 	case ACMERR_BUSY:
 	case ACMERR_CANCELED:
 	    mp_msg(MSGT_WIN32, MSGL_DBG2, "ACM_Decoder: stream busy, waiting..\n");
-	    sleep(100);
+	    usec_sleep(100000000);
 	    return(uninit(sh));
 	case ACMERR_UNPREPARED:
 	case ACMERR_NOTPOSSIBLE:
--- a/libmpdemux/pnm.c	Sat Sep 03 10:27:22 2005 +0000
+++ b/libmpdemux/pnm.c	Sat Sep 03 10:58:52 2005 +0000
@@ -225,7 +225,7 @@
 #else
       if ((timeout>0) && ((errno == EAGAIN) || (WSAGetLastError() == WSAEINPROGRESS))) {
 #endif
-        sleep (1); timeout--;
+        usec_sleep (1000000); timeout--;
       } else
         return -1;
     }
--- a/libmpdemux/realrtsp/rtsp.c	Sat Sep 03 10:27:22 2005 +0000
+++ b/libmpdemux/realrtsp/rtsp.c	Sat Sep 03 10:58:52 2005 +0000
@@ -181,7 +181,7 @@
 #else
       if ((timeout>0) && ((errno == EAGAIN) || (WSAGetLastError() == WSAEINPROGRESS))) {
 #endif
-        sleep (1); timeout--;
+        usec_sleep (1000000); timeout--;
       } else
         return -1;
     }