]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
DVR: do not use inactive DVR profile
authorJaroslav Kysela <perex@perex.cz>
Tue, 23 Jun 2015 14:08:32 +0000 (16:08 +0200)
committerJaroslav Kysela <perex@perex.cz>
Tue, 23 Jun 2015 14:11:30 +0000 (16:11 +0200)
src/dvr/dvr_config.c

index b343dde74024788f80e91669b7c748d944adbb76..2a5d534b80b7813a7146e8a7f0957f6b0b225508 100644 (file)
@@ -105,7 +105,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) : "";
@@ -121,7 +121,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);