summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschenk michael <michael.schenk@albistechnologies.com>2015-06-26 06:20:34 +0200
committerMichael Niedermayer <michaelni@gmx.at>2015-06-26 14:36:25 +0200
commitb9161ef052314813fc7ffa9af5c33315630f3479 (patch)
tree488e318dfaf95be0b32d1d2b42d4d0f833e8d861
parentd38bc6361df6ace999927e1b2ae2fc4d8cb0034c (diff)
avformat/hls: do not iterate to next sequence number if interruption is requested
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavformat/hls.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/hls.c b/libavformat/hls.c
index 3f1d97eb6f..6d14d6bf98 100644
--- a/libavformat/hls.c
+++ b/libavformat/hls.c
@@ -1085,6 +1085,8 @@ reload:
ret = open_input(c, v);
if (ret < 0) {
+ if (ff_check_interrupt(c->interrupt_callback))
+ return AVERROR_EXIT;
av_log(v->parent, AV_LOG_WARNING, "Failed to open segment of playlist %d\n",
v->index);
v->cur_seq_no += 1;