summaryrefslogtreecommitdiffstats
path: root/stream/stream.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2019-11-07 16:04:22 +0100
committerwm4 <wm4@nowhere>2019-11-07 22:53:13 +0100
commit6487abde79684ace6e24a127d1f62febf40f0d9b (patch)
tree1b511ae0ca89a244c2a3a3b49760b4ca834064f3 /stream/stream.c
parente5a9b792ecf08ddbcf3b674de3a00f7a919d1858 (diff)
downloadmpv-6487abde79684ace6e24a127d1f62febf40f0d9b.tar.bz2
mpv-6487abde79684ace6e24a127d1f62febf40f0d9b.tar.xz
stream: remove unused read_chunk field
It was set, but its value was never used. The stream cache used to use it, but it was removed. It controlled how much data it tried to read from the underlying stream at once. The user can now control the buffer size with --stream-buffer-size, which achieves a similar effect, because the stream will in the common case read half of the buffer size at once. In fact, the new default size is 128KB, i.e. 64KB read size, which is as much as stream_file and stream_cb requested by default. stream_memory requested more, but it doesn't matter anyway. Only stream_smb set a larger size with 128KB.
Diffstat (limited to 'stream/stream.c')
-rw-r--r--stream/stream.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/stream/stream.c b/stream/stream.c
index 7fbc0d3373..31a4f8fb24 100644
--- a/stream/stream.c
+++ b/stream/stream.c
@@ -353,9 +353,6 @@ static int stream_create_instance(const stream_info_t *sinfo,
return r;
}
- if (!s->read_chunk)
- s->read_chunk = 4 * STREAM_BUFFER_SIZE;
-
if (!stream_resize_buffer(s, 0)) {
free_stream(s);
return STREAM_ERROR;