diff options
author | Kevin Mitchell <kevmitch@gmail.com> | 2015-03-09 03:31:38 -0700 |
---|---|---|
committer | Diogo Franco (Kovensky) <diogomfranco@gmail.com> | 2015-03-11 12:49:40 +0900 |
commit | d57a48c64e8022cce94c18a046a39a7ba0d9c87c (patch) | |
tree | 245aa6880d5fe738351e5827d78d7ac1c14fda05 | |
parent | 22691f2e6a2f7b763e02baf4c5dc203ea21eac3b (diff) | |
download | mpv-d57a48c64e8022cce94c18a046a39a7ba0d9c87c.tar.bz2 mpv-d57a48c64e8022cce94c18a046a39a7ba0d9c87c.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.
(cherry picked from commit 3efbc1a9a38de2f0af4778ab9388c6a8e1c11ca6)
-rw-r--r-- | stream/stream_smb.c | 1 |
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; } |