diff options
Diffstat (limited to 'core/timeline/tl_matroska.c')
-rw-r--r-- | core/timeline/tl_matroska.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/timeline/tl_matroska.c b/core/timeline/tl_matroska.c index a87889edd8..75530116aa 100644 --- a/core/timeline/tl_matroska.c +++ b/core/timeline/tl_matroska.c @@ -127,7 +127,8 @@ static int enable_cache(struct MPContext *mpctx, struct stream **stream, { struct MPOpts *opts = &mpctx->opts; - if (opts->stream_cache_size <= 0) + if (!(opts->stream_cache_size > 0 || + opts->stream_cache_size < 0 && (*stream)->cache_size)) return 0; char *filename = talloc_strdup(NULL, (*demuxer)->filename); |