aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorlloyd <[email protected]>2015-05-10 02:27:03 +0000
committerlloyd <[email protected]>2015-05-10 02:27:03 +0000
commit9dfc6fdb2adc00ec1aac3099d60883d473943bb7 (patch)
tree1248f5552744b2bd4a01686a2e28ed680d519a52 /src/lib
parentf2e1dec033184a603ff1d0e4fa2d3be378b79f8e (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.
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/compression/zlib/zlib.cpp2
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