summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2019-11-06 21:57:31 +0100
committerwm4 <wm4@nowhere>2019-11-06 21:57:31 +0100
commite8aae688c3fa622dca171c77caed69732e14ede2 (patch)
tree08e55f418c1cdcf38b7193345a56f5c270628d30
parentb4466cf0d4afedd61be7c6c591ffbf98d46b1d05 (diff)
downloadmpv-e8aae688c3fa622dca171c77caed69732e14ede2.tar.bz2
mpv-e8aae688c3fa622dca171c77caed69732e14ede2.tar.xz
stream: bump default buffer size from 2K to 64K
(Only half of the buffer is actually used in a useful way, see manpage or commit which added the option.) Might have some advantages with broken network filesystem drivers. See: #6802
-rw-r--r--DOCS/man/options.rst2
-rw-r--r--stream/stream.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/DOCS/man/options.rst b/DOCS/man/options.rst
index 3ae3264969..fed5d9de56 100644
--- a/DOCS/man/options.rst
+++ b/DOCS/man/options.rst
@@ -4197,7 +4197,7 @@ Cache
Currently, this is used for ``--cache-on-disk`` only.
``--stream-buffer-size=<bytesize>``
- Size of the low level stream byte buffer (default: 4KB). This is used as
+ Size of the low level stream byte buffer (default: 128KB). This is used as
buffer between demuxer and low level I/O (e.g. sockets). Generally, this
can be very small, and the main purpose is similar to the internal buffer
FILE in the C standard library will have.
diff --git a/stream/stream.c b/stream/stream.c
index 089b7c3693..136050c265 100644
--- a/stream/stream.c
+++ b/stream/stream.c
@@ -113,7 +113,7 @@ const struct m_sub_options stream_conf = {
},
.size = sizeof(struct stream_opts),
.defaults = &(const struct stream_opts){
- .buffer_size = STREAM_MIN_BUFFER_SIZE,
+ .buffer_size = 128 * 1024,
},
};