summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--demux/demux_timeline.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/demux/demux_timeline.c b/demux/demux_timeline.c
index 4b3eb93d0d..3759c9ffc1 100644
--- a/demux/demux_timeline.c
+++ b/demux/demux_timeline.c
@@ -169,7 +169,7 @@ static void reopen_lazy_segments(struct demuxer *demuxer)
};
p->current->d = demux_open_url(p->current->url, &params,
demuxer->stream->cancel, demuxer->global);
- if (!p->current->d)
+ if (!p->current->d && !demux_cancel_test(demuxer))
MP_ERR(demuxer, "failed to load segment\n");
associate_streams(demuxer, p->current);
}