From acc0ef3ac80f18e349c6d0252177707105c0a29c Mon Sep 17 00:00:00 2001 From: Lasse Collin Date: Sun, 26 Jan 2020 20:19:19 +0200 Subject: xz: Move flush_needed from mytime.h to file_pair struct in file_io.h. --- src/xz/coder.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/xz/coder.c') diff --git a/src/xz/coder.c b/src/xz/coder.c index 96f8e734..8bad038e 100644 --- a/src/xz/coder.c +++ b/src/xz/coder.c @@ -711,7 +711,7 @@ coder_normal(file_pair *pair) action = LZMA_FULL_BARRIER; } - if (action == LZMA_RUN && flush_needed) + if (action == LZMA_RUN && pair->flush_needed) action = LZMA_SYNC_FLUSH; } @@ -739,6 +739,7 @@ coder_normal(file_pair *pair) // Mark that we haven't seen any new input // since the previous flush. pair->src_has_seen_input = false; + pair->flush_needed = false; } else { // Start a new Block after LZMA_FULL_BARRIER. if (opt_block_list == NULL) { -- cgit v1.2.3