Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
DVR: config - use combobox to set the extra times
  • Loading branch information
perexg committed Sep 18, 2014
1 parent 4f494c6 commit 249eac3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/dvr/dvr_config.c
Expand Up @@ -368,6 +368,12 @@ dvr_config_class_cache_list(void *o)
return strtab2htsmsg(tab);
}

static htsmsg_t *
dvr_config_class_extra_list(void *o)
{
return dvr_entry_class_duration_list(o, "Not set (none or channel config)", 4*60, 1);
}

static htsmsg_t *
dvr_config_entry_class_update_window_list(void *o)
{
Expand Down Expand Up @@ -460,13 +466,15 @@ const idclass_t dvr_config_class = {
.id = "pre-extra-time",
.name = "Extra Time Before Recordings (minutes)",
.off = offsetof(dvr_config_t, dvr_extra_time_pre),
.list = dvr_config_class_extra_list,
.group = 1,
},
{
.type = PT_U32,
.id = "post-extra-time",
.name = "Extra Time After Recordings (minutes)",
.off = offsetof(dvr_config_t, dvr_extra_time_post),
.list = dvr_config_class_extra_list,
.group = 1,
},
{
Expand Down

0 comments on commit 249eac3

Please sign in to comment.