From: Jaroslav Kysela Date: Mon, 1 Jun 2015 12:47:26 +0000 (+0200) Subject: DVR: config - update pathname according checkboxes (for old configs) X-Git-Tag: v4.2.1~2405 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=145ca5200f6d13ea098b7b0846a5738c41be8b9a;p=thirdparty%2Ftvheadend.git DVR: config - update pathname according checkboxes (for old configs) --- diff --git a/src/dvr/dvr_config.c b/src/dvr/dvr_config.c index 70937bd85..8753ee244 100644 --- a/src/dvr/dvr_config.c +++ b/src/dvr/dvr_config.c @@ -39,6 +39,7 @@ struct dvr_config_list dvrconfigs; static dvr_config_t *dvrdefaultconfig = NULL; static void dvr_config_destroy(dvr_config_t *cfg, int delconf); +static void dvr_update_pathname_from_booleans(dvr_config_t *cfg); /** * find a dvr config by name, return NULL if not found @@ -190,6 +191,8 @@ dvr_config_create(const char *name, const char *uuid, htsmsg_t *conf) if (conf) { idnode_load(&cfg->dvr_id, conf); + if (!htsmsg_field_find(conf, "pathname")) + dvr_update_pathname_from_booleans(cfg); cfg->dvr_valid = 1; }