diff options
author | Mans Rullgard <mans@mansr.com> | 2012-06-21 20:31:44 +0100 |
---|---|---|
committer | Mans Rullgard <mans@mansr.com> | 2012-06-22 17:15:36 +0100 |
commit | 896bb0d742a513b1bb5b9a770dbffd2cd436bed6 (patch) | |
tree | bc133c53f4cd418c8b42c6d12958e719900ebb6e /libavformat/hlsproto.c | |
parent | d3d3a32c9d389cc0d6a91b389988a225ae01c948 (diff) | |
download | ffmpeg-896bb0d742a513b1bb5b9a770dbffd2cd436bed6.tar.gz |
Replace usleep() calls with av_usleep()
This reduces the dependency on unistd.h which is not available
on all systems.
Signed-off-by: Mans Rullgard <mans@mansr.com>
Diffstat (limited to 'libavformat/hlsproto.c')
-rw-r--r-- | libavformat/hlsproto.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/hlsproto.c b/libavformat/hlsproto.c index 044b7ffe98..179bdf1967 100644 --- a/libavformat/hlsproto.c +++ b/libavformat/hlsproto.c @@ -26,11 +26,11 @@ */ #include "libavutil/avstring.h" +#include "libavutil/time.h" #include "avformat.h" #include "internal.h" #include "url.h" #include "version.h" -#include <unistd.h> /* * An apple http stream consists of a playlist with media segment files, @@ -308,7 +308,7 @@ retry: while (av_gettime() - s->last_load_time < reload_interval) { if (ff_check_interrupt(&h->interrupt_callback)) return AVERROR_EXIT; - usleep(100*1000); + av_usleep(100*1000); } goto retry; } |