Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
DVR: do not use inactive DVR profile
  • Loading branch information
perexg committed Jun 23, 2015
1 parent a8ac26d commit 5749ed2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/dvr/dvr_config.c
Expand Up @@ -106,7 +106,7 @@ dvr_config_find_by_list(htsmsg_t *uuids, const char *name)
htsmsg_field_t *f;
const char *uuid, *uuid2;

cfg = dvr_config_find_by_uuid(name);
cfg = dvr_config_find_by_uuid(name);
if (!cfg)
cfg = dvr_config_find_by_name(name);
uuid = cfg ? idnode_uuid_as_str(&cfg->dvr_id) : "";
Expand All @@ -122,7 +122,8 @@ dvr_config_find_by_list(htsmsg_t *uuids, const char *name)
}
}
} else {
res = cfg;
if (cfg->dvr_enabled)
res = cfg;
}
if (!res)
res = dvr_config_find_by_name_default(NULL);
Expand Down

0 comments on commit 5749ed2

Please sign in to comment.