From c8df9c63587e061e08d17ace01fef15fb9834b4d Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Thu, 17 May 2007 10:30:03 +0000 Subject: Use usleep instead of sleep, some MinGW versions lack sleep. Originally committed as revision 9044 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/http.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavformat') diff --git a/libavformat/http.c b/libavformat/http.c index b28a56f7ea..6a509dc6aa 100644 --- a/libavformat/http.c +++ b/libavformat/http.c @@ -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; } -- cgit v1.2.3