From e02a5db65f6fb1f0b6de1e1f18838294899c508a Mon Sep 17 00:00:00 2001 From: Mark Clarkstone Date: Sat, 3 Sep 2016 12:04:14 +0100 Subject: [PATCH] mdhelp: add warning about setting incorrect cache scheme and change the default cache scheme from "don't keep" to "system" to prevent crashes on some systems (fixes #3770) --- docs/property/cache_scheme.md | 3 +++ src/dvr/dvr_config.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/property/cache_scheme.md b/docs/property/cache_scheme.md index 69c0b76ee..9702442b2 100644 --- a/docs/property/cache_scheme.md +++ b/docs/property/cache_scheme.md @@ -7,6 +7,9 @@ means that there’s a disconnect when writing between the write request (from the application) and the actual write itself (to the disc/storage) as changes are buffered to be written in one go. +Warning, setting an incorrect scheme can lead to crashes. If you're +unsure select *System*. + Scheme | Description -----------------------|------------ **Unknown** | A placeholder status, meaning that the configuration isn’t properly set. diff --git a/src/dvr/dvr_config.c b/src/dvr/dvr_config.c index 4785d986a..45e6f9087 100644 --- a/src/dvr/dvr_config.c +++ b/src/dvr/dvr_config.c @@ -190,7 +190,7 @@ dvr_config_create(const char *name, const char *uuid, htsmsg_t *conf) cfg->dvr_cleanup_threshold_used = 0; // disabled /* Muxer config */ - cfg->dvr_muxcnf.m_cache = MC_CACHE_DONTKEEP; + cfg->dvr_muxcnf.m_cache = MC_CACHE_SYSTEM; /* Default recording file and directory permissions */ -- 2.47.3