From b9161ef052314813fc7ffa9af5c33315630f3479 Mon Sep 17 00:00:00 2001 From: schenk michael Date: Fri, 26 Jun 2015 06:20:34 +0200 Subject: avformat/hls: do not iterate to next sequence number if interruption is requested Signed-off-by: Michael Niedermayer --- libavformat/hls.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libavformat') 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; -- cgit v1.2.3