diff options
author | wm4 <wm4@nowhere> | 2015-02-06 21:32:44 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-02-06 21:43:52 +0100 |
commit | 5de29b860b25bb4ba8b1e02d9b3aee7a81009be0 (patch) | |
tree | 48e2b98f35ceb2aecef8a0706e921e3219b6994d /stream/rar.c | |
parent | 347cf972310c0de5565015190c1cd6e7d3d3d30c (diff) | |
download | mpv-5de29b860b25bb4ba8b1e02d9b3aee7a81009be0.tar.bz2 mpv-5de29b860b25bb4ba8b1e02d9b3aee7a81009be0.tar.xz |
stream: get rid of remaining uses of the end_pos field
Most things stopped using this field for better support of growing
files. Go through the trouble to repalce the remaining uses, so it can
be removed.
Also move the "streaming" field; saves 4 bytes (wow!).
Diffstat (limited to 'stream/rar.c')
-rw-r--r-- | stream/rar.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/stream/rar.c b/stream/rar.c index 7fae5e35ac..9d8b64717a 100644 --- a/stream/rar.c +++ b/stream/rar.c @@ -257,8 +257,7 @@ exit: /* We stop on the first non empty file if we cannot seek */ if (current) { - bool can_seek = s->end_pos > 0; - if (!can_seek && current->size > 0) + if (!s->seekable && current->size > 0) return -1; } |