]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
DVR: config - use combobox to set the extra times
authorJaroslav Kysela <perex@perex.cz>
Thu, 18 Sep 2014 12:24:51 +0000 (14:24 +0200)
committerJaroslav Kysela <perex@perex.cz>
Thu, 18 Sep 2014 12:24:51 +0000 (14:24 +0200)
src/dvr/dvr_config.c

index 77e78654be74f3d691ccd130ddcf8ca45e46daed..3d8ab2a30ec7d341ab501c113ccecc079de90238 100644 (file)
@@ -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)
 {
@@ -460,6 +466,7 @@ 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,
     },
     {
@@ -467,6 +474,7 @@ const idclass_t dvr_config_class = {
       .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,
     },
     {