aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/applehttpproto.c
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2011-11-06 22:34:24 +0200
committerAnton Khirnov <anton@khirnov.net>2011-11-13 13:08:13 +0100
commit9957cdbfd5ced5baae6ec97b97b08f1ad42aa4e4 (patch)
tree3bb6c32c1443eda97524dbea69b60416a3bdc019 /libavformat/applehttpproto.c
parentc4a090ddb564b87fd9d6d4f83e0f134a77c96007 (diff)
downloadffmpeg-9957cdbfd5ced5baae6ec97b97b08f1ad42aa4e4.tar.gz
avformat: Use ff_check_interrupt
Diffstat (limited to 'libavformat/applehttpproto.c')
-rw-r--r--libavformat/applehttpproto.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/applehttpproto.c b/libavformat/applehttpproto.c
index 85f3cfcef4..1476ea28f2 100644
--- a/libavformat/applehttpproto.c
+++ b/libavformat/applehttpproto.c
@@ -266,7 +266,7 @@ retry:
if (s->finished)
return AVERROR_EOF;
while (av_gettime() - s->last_load_time < s->target_duration*1000000) {
- if (url_interrupt_cb())
+ if (ff_check_interrupt(&h->interrupt_callback))
return AVERROR_EXIT;
usleep(100*1000);
}
@@ -276,7 +276,7 @@ retry:
av_log(h, AV_LOG_DEBUG, "opening %s\n", url);
ret = ffurl_open(&s->seg_hd, url, AVIO_FLAG_READ);
if (ret < 0) {
- if (url_interrupt_cb())
+ if (ff_check_interrupt(&h->interrupt_callback))
return AVERROR_EXIT;
av_log(h, AV_LOG_WARNING, "Unable to open %s\n", url);
s->cur_seq_no++;