mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-28 05:33:14 +00:00
cache: fix description of the offset field
This field sure is a bit strange. I hope the description is correct now.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user