Author: alex Date: Thu May 17 12:30:03 2007 New Revision: 9044 Log: use usleep instead sleep Modified: trunk/libavformat/http.c Modified: trunk/libavformat/http.c ============================================================================== --- trunk/libavformat/http.c (original) +++ trunk/libavformat/http.c Thu May 17 12:30:03 2007 @@ -245,7 +245,7 @@ static int http_connect(URLContext *h, c s->off = 0; s->filesize = -1; if (post) { - sleep(1); + usleep(1000*1000); return 0; }
Hello, On Thu, May 17, 2007 at 12:30:03PM +0200, alex wrote:
Author: alex Date: Thu May 17 12:30:03 2007 New Revision: 9044
Log: use usleep instead sleep
Why would be quite usefull to have in the log message.
Hi,
Log: use usleep instead sleep
Why would be quite usefull to have in the log message.
Some mingw versions doesnt have sleep and there was a patch for adding a yet another macro for fixing this. It was better to just use usleep, as it is used allover ffmpeg to avoid adding new OS related code. -- Alex Beregszaszi
On Thu, May 17, 2007 at 12:42:01PM +0200, Alex Beregszaszi wrote:
Log: use usleep instead sleep
Why would be quite usefull to have in the log message.
Some mingw versions doesnt have sleep and there was a patch for adding a yet another macro for fixing this. It was better to just use usleep, as it is used allover ffmpeg to avoid adding new OS related code.
And now all you need to do is update the log message :) Diego
On Thu, May 17, 2007 at 01:10:41PM +0200, Diego Biurrun wrote:
On Thu, May 17, 2007 at 12:42:01PM +0200, Alex Beregszaszi wrote:
Log: use usleep instead sleep
Why would be quite usefull to have in the log message.
Some mingw versions doesnt have sleep and there was a patch for adding a yet another macro for fixing this. It was better to just use usleep, as it is used allover ffmpeg to avoid adding new OS related code.
And now all you need to do is update the log message :)
Log message updated. Diego
participants (4)
-
alex@rtfs.hu -
diego@biurrun.de -
Reimar.Doeffinger@stud.uni-karlsruhe.de -
subversion@mplayerhq.hu