From 694d37c15f458b540b4e566ff80aa307ad7d76ef Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Mon, 22 Feb 2016 20:55:30 +0100 Subject: [PATCH] settings: fix the ugly bug (low limit of htsmsg_binary_serialize) --- src/settings.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/settings.c b/src/settings.c index cb97814d3..7ec1cfb59 100644 --- a/src/settings.c +++ b/src/settings.c @@ -183,11 +183,13 @@ hts_settings_save(htsmsg_t *record, const char *pathfmt, ...) } else { #if ENABLE_ZLIB msgdata = NULL; - r = htsmsg_binary_serialize(record, &msgdata, &msglen, 0x10000); + r = htsmsg_binary_serialize(record, &msgdata, &msglen, 2*1024*1024); if (!r && msglen >= 4) { r = tvh_gzip_deflate_fd_header(fd, msgdata + 4, msglen - 4, 3); if (r) ok = 0; + } else { + tvhlog(LOG_ALERT, "settings", "Unable to pack the configuration data \"%s\"", path); } free(msgdata); #endif -- 2.47.3