From 5de29b860b25bb4ba8b1e02d9b3aee7a81009be0 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 6 Feb 2015 21:32:44 +0100 Subject: 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!). --- stream/rar.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'stream/rar.c') 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; } -- cgit v1.2.3