Use usleep instead of sleep, some MinGW versions lack sleep.
authorAlex Beregszaszi <alex@rtfs.hu>
Thu, 17 May 2007 10:30:03 +0000 (10:30 +0000)
committerAlex Beregszaszi <alex@rtfs.hu>
Thu, 17 May 2007 10:30:03 +0000 (10:30 +0000)
Originally committed as revision 9044 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/http.c

index b28a56f..6a509dc 100644 (file)
@@ -245,7 +245,7 @@ static int http_connect(URLContext *h, const char *path, const char *hoststr,
     s->off = 0;
     s->filesize = -1;
     if (post) {
-        sleep(1);
+        usleep(1000*1000);
         return 0;
     }