summaryrefslogtreecommitdiffstats
path: root/stream/stream.h
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.h
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.h')
-rw-r--r--stream/stream.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/stream/stream.h b/stream/stream.h
index 55db9c1314..8b36d137a7 100644
--- a/stream/stream.h
+++ b/stream/stream.h
@@ -120,7 +120,6 @@ typedef struct stream {
// Close
void (*close)(struct stream *s);
- int read_chunk; // maximum amount of data to read at once to limit latency
int64_t pos;
int eof;
int mode; //STREAM_READ or STREAM_WRITE