summaryrefslogtreecommitdiffstats
path: root/stream
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-03-26 20:42:09 +0100
committerwm4 <wm4@nowhere>2014-03-26 20:42:09 +0100
commitb292ca8702f88758ef0e08206c28ae674070a45c (patch)
treeafb83dc98646992bf9f626137853005619dca05a /stream
parent5afef03a7076a64058a0c7d7de0780ddff0bdc7c (diff)
downloadmpv-b292ca8702f88758ef0e08206c28ae674070a45c.tar.bz2
mpv-b292ca8702f88758ef0e08206c28ae674070a45c.tar.xz
mf: fix operation with --cache
demux_mf.c explicitly checks for the stream type to check whether images are opened via pattern (mf://..., i.e. stream_mf.c) or directly. Of course the stream type is not set to STREAMTYPE_MF if the stream is wrapped through the cache, so it tried to open the pattern directly as file, which failed. Fix this by disabling caching for mf://. The cache doesn't make sense here anyway, because each file is opened and closed every frame (perhaps to avoid memory bloat).
Diffstat (limited to 'stream')
-rw-r--r--stream/stream_mf.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/stream/stream_mf.c b/stream/stream_mf.c
index 9b80a73d58..a42fa29c0a 100644
--- a/stream/stream_mf.c
+++ b/stream/stream_mf.c
@@ -33,6 +33,7 @@ mf_stream_open (stream_t *stream, int mode)
{
stream->type = STREAMTYPE_MF;
stream->demuxer = "mf";
+ stream->allow_caching = false;
return STREAM_OK;
}