aboutsummaryrefslogtreecommitdiff
path: root/src/xz/coder.c
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2020-01-26 20:19:19 +0200
committerLasse Collin <lasse.collin@tukaani.org>2020-02-05 22:00:28 +0200
commitacc0ef3ac80f18e349c6d0252177707105c0a29c (patch)
tree2944d71bf48ef6c7ec2253a37c6fa9ffa26e4124 /src/xz/coder.c
parentxz: coder.c: Make writing output a separate function. (diff)
downloadxz-acc0ef3ac80f18e349c6d0252177707105c0a29c.tar.xz
xz: Move flush_needed from mytime.h to file_pair struct in file_io.h.
Diffstat (limited to '')
-rw-r--r--src/xz/coder.c3
1 files changed, 2 insertions, 1 deletions
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) {