diff options
Diffstat (limited to 'stream/cache.c')
-rw-r--r-- | stream/cache.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/stream/cache.c b/stream/cache.c index b7ed76c8fa..0ffa3927be 100644 --- a/stream/cache.c +++ b/stream/cache.c @@ -208,6 +208,9 @@ static bool cache_fill(struct priv *s) goto done; } + if (mp_cancel_test(s->cache->cancel)) + goto done; + // number of buffer bytes which should be preserved in backwards direction int64_t back = MPCLAMP(read - s->min_filepos, 0, s->back_size); |