Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
settings: fix the ugly bug (low limit of htsmsg_binary_serialize)
  • Loading branch information
perexg committed Feb 22, 2016
1 parent 2265541 commit 694d37c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/settings.c
Expand Up @@ -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
Expand Down

0 comments on commit 694d37c

Please sign in to comment.