mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-09-05 23:48:44 +02:00
Fix GZlibCompressorFormat names
What used to be called RAW is really the zlib header format. There is a real "raw" format, so rename the default and add a RAW type.
This commit is contained in:
@@ -144,7 +144,12 @@ g_zlib_decompressor_constructed (GObject *object)
|
||||
/* + 16 for gzip */
|
||||
res = inflateInit2 (&decompressor->zstream, MAX_WBITS + 16);
|
||||
}
|
||||
else
|
||||
else if (decompressor->format == G_ZLIB_COMPRESSOR_FORMAT_RAW)
|
||||
{
|
||||
/* Negative for gzip */
|
||||
res = inflateInit2 (&decompressor->zstream, -MAX_WBITS);
|
||||
}
|
||||
else /* ZLIB */
|
||||
res = inflateInit (&decompressor->zstream);
|
||||
|
||||
if (res == Z_MEM_ERROR )
|
||||
@@ -170,7 +175,7 @@ g_zlib_decompressor_class_init (GZlibDecompressorClass *klass)
|
||||
P_("compression format"),
|
||||
P_("The format of the compressed data"),
|
||||
G_TYPE_ZLIB_COMPRESSOR_FORMAT,
|
||||
G_ZLIB_COMPRESSOR_FORMAT_RAW,
|
||||
G_ZLIB_COMPRESSOR_FORMAT_ZLIB,
|
||||
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY |
|
||||
G_PARAM_STATIC_STRINGS));
|
||||
}
|
||||
|
Reference in New Issue
Block a user