]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
wizard: another attempt to fix --disable-iptv, fixes #3521
authorJaroslav Kysela <perex@perex.cz>
Sat, 30 Jan 2016 14:22:10 +0000 (15:22 +0100)
committerJaroslav Kysela <perex@perex.cz>
Sat, 30 Jan 2016 14:22:10 +0000 (15:22 +0100)
src/wizard.c

index a177ab1aabea5492a1c31d235f64e8d18b7a43b4..01051135b45486d99b434ff5283d48cd267fa45e 100644 (file)
@@ -718,7 +718,6 @@ static void muxes_save(idnode_t *in)
   wizard_page_t *p = (wizard_page_t *)in;
   wizard_muxes_t *w = p->aux;
   mpegts_network_t *mn;
-  htsmsg_t *m;
   int idx;
 
   for (idx = 0; idx < WIZARD_NETWORKS; idx++) {
@@ -733,7 +732,7 @@ static void muxes_save(idnode_t *in)
 #if ENABLE_IPTV
       else if (idnode_is_instance(&mn->mn_id, &iptv_auto_network_class) &&
                w->iptv_url[idx]) {
-      m = htsmsg_create_map();
+      htsmsg_t *m = htsmsg_create_map();
       htsmsg_add_str(m, "url", w->iptv_url[idx]);
       idnode_load(&mn->mn_id, m);
       htsmsg_destroy(m);
@@ -887,6 +886,7 @@ wizard_page_t *wizard_muxes(const char *lang)
     MUXES(5),
     MUXES(6),
   };
+#if ENABLE_IPTV
   static const property_t iptvprops[] = {
     MUXES_IPTV(1),
     MUXES_IPTV(2),
@@ -895,6 +895,7 @@ wizard_page_t *wizard_muxes(const char *lang)
     MUXES_IPTV(5),
     MUXES_IPTV(6),
   };
+#endif
   static const property_t props[] = {
     ICON(),
     DESCRIPTION(muxes),