0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 03:52:22 +02:00

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:
Kevin Mitchell 2015-03-09 03:31:38 -07:00
parent 6983430c35
commit 3efbc1a9a3

View File

@ -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;
}