From c70f203a0ee5a0ba407525cbbe9fe2a284c9da2b Mon Sep 17 00:00:00 2001
From: schenk michael <michael.schenk@albistechnologies.com>
Date: Fri, 26 Jun 2015 06:20:34 +0200
Subject: [PATCH] do not iterate to next sequence number if interrupted is
 requested

---
 libavformat/hls.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavformat/hls.c b/libavformat/hls.c
index 3f1d97e..6d14d6b 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;
-- 
1.9.1

