]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
set mux satpos from network satpos if set
authorGlenn-1990 <g_christiaensen@msn.com>
Tue, 3 Mar 2015 14:17:00 +0000 (15:17 +0100)
committerJaroslav Kysela <perex@perex.cz>
Mon, 9 Mar 2015 15:15:37 +0000 (16:15 +0100)
src/input/mpegts/mpegts_mux_dvb.c

index 010267f15629188096dc650f45e44dcdbfdcc1d5..53bc021c9fc8ce84df83c0368cb5e8ab7c7f8b36 100644 (file)
@@ -793,9 +793,15 @@ dvb_mux_create0
     htsmsg_destroy(c);
   }
 
-  /* Update the satellite position for the network settings */
-  if (ln->mn_satpos == INT_MAX && lm->lm_tuning.u.dmc_fe_qpsk.orbital_pos != INT_MAX)
-    ln->mn_satpos = lm->lm_tuning.u.dmc_fe_qpsk.orbital_pos;
+  if (ln->mn_satpos == INT_MAX) {
+    /* Update the satellite position for the network settings */
+    if (lm->lm_tuning.u.dmc_fe_qpsk.orbital_pos != INT_MAX)
+      ln->mn_satpos = lm->lm_tuning.u.dmc_fe_qpsk.orbital_pos;
+  }
+  else {
+    /* Update the satellite position for the mux setting */
+    lm->lm_tuning.u.dmc_fe_qpsk.orbital_pos = ln->mn_satpos;
+  }
 
   return lm;
 }