avformat/hls: do not iterate to next sequence number if interruption is requested
authorschenk michael <michael.schenk@albistechnologies.com>
Fri, 26 Jun 2015 04:20:34 +0000 (06:20 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 26 Jun 2015 12:36:25 +0000 (14:36 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/hls.c

index 3f1d97e..6d14d6b 100644 (file)
@@ -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;