diff options
author | wm4 <wm4@nowhere> | 2014-04-09 22:45:55 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-04-09 22:45:55 +0200 |
commit | d6086fa9ece0342a0a94be3b133ee68b55eee833 (patch) | |
tree | 5eae43b605bed99f6c23d706f4c98fbd46b20da1 /stream | |
parent | 5131fe13e1d14acc327fe3deb6b26361a00bf8b0 (diff) | |
download | mpv-d6086fa9ece0342a0a94be3b133ee68b55eee833.tar.bz2 mpv-d6086fa9ece0342a0a94be3b133ee68b55eee833.tar.xz |
cache: fix description of the offset field
This field sure is a bit strange. I hope the description is correct now.
Diffstat (limited to 'stream')
-rw-r--r-- | stream/cache.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/stream/cache.c b/stream/cache.c index ac3efcfb74..6f52609082 100644 --- a/stream/cache.c +++ b/stream/cache.c @@ -93,7 +93,9 @@ struct priv { int64_t min_filepos; // range of file that is cached in the buffer int64_t max_filepos; // ... max_filepos being the last read position bool eof; // true if max_filepos = EOF - int64_t offset; // buffer[offset] corresponds to max_filepos + int64_t offset; // buffer[WRAP(s->max_filepos - offset)] corresponds + // to the byte at max_filepos (must be wrapped by + // buffer_size) bool idle; // cache thread has stopped reading int64_t reads; // number of actual read attempts performed |