From 9dfc6fdb2adc00ec1aac3099d60883d473943bb7 Mon Sep 17 00:00:00 2001 From: lloyd Date: Sun, 10 May 2015 02:27:03 +0000 Subject: 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. --- src/lib/compression/zlib/zlib.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib/compression') 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 } 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 -- cgit v1.2.3