Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
DVR: config - update pathname according checkboxes (for old configs)
  • Loading branch information
perexg committed Jun 1, 2015
1 parent 38ac552 commit 145ca52
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/dvr/dvr_config.c
Expand Up @@ -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
Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit 145ca52

Please sign in to comment.