diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-10-24 12:40:08 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-10-24 12:40:36 +0200 |
commit | 2c5ae57776907142b78243cbf502be6f5370ca87 (patch) | |
tree | 3e718a04eda5858347982e572c13e384d1c52a16 /libavformat/hlsproto.c | |
parent | 2896b981830ec5835732c044a2f6c606ee9fd5e6 (diff) | |
parent | 6df9d9b55d3f56ee7782639a7678eeeaf77f14ea (diff) | |
download | ffmpeg-2c5ae57776907142b78243cbf502be6f5370ca87.tar.gz |
Merge commit '6df9d9b55d3f56ee7782639a7678eeeaf77f14ea'
* commit '6df9d9b55d3f56ee7782639a7678eeeaf77f14ea':
lavf: Use av_gettime_relative
Conflicts:
libavformat/hls.c
See: f78bc96b7c1c74caf99a7139cf81ce1110404965
Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/hlsproto.c')
-rw-r--r-- | libavformat/hlsproto.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavformat/hlsproto.c b/libavformat/hlsproto.c index e607c10e21..a569e9224e 100644 --- a/libavformat/hlsproto.c +++ b/libavformat/hlsproto.c @@ -169,7 +169,7 @@ static int parse_playlist(URLContext *h, const char *url) } } } - s->last_load_time = av_gettime(); + s->last_load_time = av_gettime_relative(); fail: avio_close(in); @@ -273,7 +273,7 @@ start: s->target_duration; retry: if (!s->finished) { - int64_t now = av_gettime(); + int64_t now = av_gettime_relative(); if (now - s->last_load_time >= reload_interval) { if ((ret = parse_playlist(h, s->playlisturl)) < 0) return ret; @@ -292,7 +292,7 @@ retry: if (s->cur_seq_no - s->start_seq_no >= s->n_segments) { if (s->finished) return AVERROR_EOF; - while (av_gettime() - s->last_load_time < reload_interval) { + while (av_gettime_relative() - s->last_load_time < reload_interval) { if (ff_check_interrupt(&h->interrupt_callback)) return AVERROR_EXIT; av_usleep(100*1000); |