]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
linuxdvb: use the right configuration root for the slave tuners (loading), issue...
authorJaroslav Kysela <perex@perex.cz>
Wed, 20 Mar 2019 13:47:02 +0000 (14:47 +0100)
committerJaroslav Kysela <perex@perex.cz>
Wed, 20 Mar 2019 13:47:02 +0000 (14:47 +0100)
src/input/mpegts/linuxdvb/linuxdvb_frontend.c

index a7c38b516a28f4538d4e6e4f1d731422e89d0d9e..3d589966b1eb1d45ab75adc3a04feb78af057984 100644 (file)
@@ -2115,7 +2115,7 @@ linuxdvb_frontend_create
   const char *str, *uuid = NULL, *muuid = NULL;
   char id[16], lname[256], buf[256];
   linuxdvb_frontend_t *lfe;
-  htsmsg_t *scconf;
+  htsmsg_t *oconf = conf, *scconf;
   ssize_t r;
   int fd;
 
@@ -2129,7 +2129,8 @@ linuxdvb_frontend_create
   /* Tuner slave */
   snprintf(buf, sizeof(buf), "master for #%d", number);
   if (conf && type == DVB_TYPE_S) {
-    muuid = htsmsg_get_str(conf, buf);
+    /* use the original configuration here */
+    muuid = htsmsg_get_str(oconf, buf);
     if (muuid && uuid && !strcmp(muuid, uuid))
       muuid = NULL;
   }