summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-03-26 20:42:09 +0100
committerwm4 <wm4@nowhere>2014-03-30 17:54:33 +0200
commit67f653324a5ba205a66a1760209b71c2eec8e856 (patch)
treea7c437076ee2d7e0adb0105f792f342eafe3127e
parent6e2c29b78658ac7193f90f5745d8312a5ac10e0f (diff)
downloadmpv-67f653324a5ba205a66a1760209b71c2eec8e856.tar.bz2
mpv-67f653324a5ba205a66a1760209b71c2eec8e856.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).
-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;
}