diff options
author | lloyd <[email protected]> | 2015-05-10 02:27:03 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2015-05-10 02:27:03 +0000 |
commit | 9dfc6fdb2adc00ec1aac3099d60883d473943bb7 (patch) | |
tree | 1248f5552744b2bd4a01686a2e28ed680d519a52 | |
parent | f2e1dec033184a603ff1d0e4fa2d3be378b79f8e (diff) |
Change zlib to use Z_SYNC_FLUSH instead of Z_FULL_FLUSH for flushing.
This lets flush work for decompression also, and more generally
provides what an application wants from a mid-stream compression flush.
-rw-r--r-- | src/lib/compression/zlib/zlib.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/compression/zlib/zlib.cpp b/src/lib/compression/zlib/zlib.cpp index a709526ce..415bbccac 100644 --- a/src/lib/compression/zlib/zlib.cpp +++ b/src/lib/compression/zlib/zlib.cpp @@ -31,7 +31,7 @@ class Zlib_Stream : public Zlib_Style_Stream<z_stream, Bytef> } u32bit run_flag() const override { return Z_NO_FLUSH; } - u32bit flush_flag() const override { return Z_FULL_FLUSH; } + u32bit flush_flag() const override { return Z_SYNC_FLUSH; } u32bit finish_flag() const override { return Z_FINISH; } int compute_window_bits(int wbits, int wbits_offset) const |