summaryrefslogtreecommitdiffstats
path: root/stream/stream_smb.c
diff options
context:
space:
mode:
authorKevin Mitchell <kevmitch@gmail.com>2015-03-09 03:31:38 -0700
committerKevin Mitchell <kevmitch@gmail.com>2015-03-09 03:38:01 -0700
commit3efbc1a9a38de2f0af4778ab9388c6a8e1c11ca6 (patch)
tree385d53890cc5b164f5b5347ba8856dd372869cb0 /stream/stream_smb.c
parent6983430c35d8f71ad5d779c763f80d55bcf69c47 (diff)
downloadmpv-3efbc1a9a38de2f0af4778ab9388c6a8e1c11ca6.tar.bz2
mpv-3efbc1a9a38de2f0af4778ab9388c6a8e1c11ca6.tar.xz
stream/smb: mark as network stream for --cache=auto
This causes the cache to be enabled with --cache=auto. It was not done previously because the small cache size 320k actually led to worse performance. However, with the current default cache size of 25000kb, caching notably improves performance.
Diffstat (limited to 'stream/stream_smb.c')
-rw-r--r--stream/stream_smb.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/stream/stream_smb.c b/stream/stream_smb.c
index 96f8ec69bd..ebea3705de 100644
--- a/stream/stream_smb.c
+++ b/stream/stream_smb.c
@@ -133,6 +133,7 @@ static int open_f (stream_t *stream)
stream->close = close_f;
stream->control = control;
stream->read_chunk = 128 * 1024;
+ stream->streaming = true;
return STREAM_OK;
}