mirror of https://github.com/mpv-player/mpv
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.
This commit is contained in:
parent
6983430c35
commit
3efbc1a9a3
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue