[FFmpeg-cvslog] pktdumper: Use usleep instead of sleep

Martin Storsjö git at videolan.org
Thu Jan 26 03:20:21 CET 2012


ffmpeg | branch: master | Martin Storsjö <martin at martin.st> | Wed Jan 25 13:47:47 2012 +0200| [7072a6a4bb058a906076d0813ec46595bc2a9a09] | committer: Martin Storsjö

pktdumper: Use usleep instead of sleep

MinGW doesn't have sleep, only _sleep (which is deprecated),
Sleep (which is defined in winbase.h and not in the standard
C headers) and usleep.

Signed-off-by: Martin Storsjö <martin at martin.st>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=7072a6a4bb058a906076d0813ec46595bc2a9a09
---

 tools/pktdumper.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/tools/pktdumper.c b/tools/pktdumper.c
index e9e5acf..54dd3f5 100644
--- a/tools/pktdumper.c
+++ b/tools/pktdumper.c
@@ -120,7 +120,7 @@ int main(int argc, char **argv)
     avformat_close_input(&fctx);
 
     while (donotquit)
-        sleep(60);
+        usleep(60 * 1000000);
 
     return 0;
 }



More information about the ffmpeg-cvslog mailing list