]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
Fix Approx satip match (pola is mandatory)
authorTheTroll <trolldev@gmail.com>
Tue, 23 Aug 2016 20:57:01 +0000 (22:57 +0200)
committerJaroslav Kysela <perex@perex.cz>
Wed, 24 Aug 2016 06:12:53 +0000 (08:12 +0200)
src/input/mpegts/mpegts_network_dvb.c

index b8239ed66223758de0523d1c12aa98d6737dbd58..bf433e62208e1ce61bf0bd8915b337221504df60 100644 (file)
@@ -539,6 +539,9 @@ dvb_network_find_mux
     /* Reject if not same symbol rate (some tolerance due to changes and diff in NIT) */
     if (dvb_network_check_symbol_rate(lm, dmc, deltar)) continue;
 
+    /* Reject if not same polarisation */
+    if (lm->lm_tuning.u.dmc_fe_qpsk.polarisation != dmc->u.dmc_fe_qpsk.polarisation) continue;
+
     /* DVB-S extra checks */
     if (!approx_match && (lm->lm_tuning.dmc_fe_type == DVB_TYPE_S)) {
 
@@ -550,9 +553,6 @@ dvb_network_find_mux
       /* Same FEC */
       if (lm->lm_tuning.u.dmc_fe_qpsk.fec_inner != dmc->u.dmc_fe_qpsk.fec_inner) continue;
 
-      /* Same polarisation */
-      if (lm->lm_tuning.u.dmc_fe_qpsk.polarisation != dmc->u.dmc_fe_qpsk.polarisation) continue;
-
       /* Same orbital position */
       if (dvb_network_check_orbital_pos(lm->lm_tuning.u.dmc_fe_qpsk.orbital_pos,
                                         dmc->u.dmc_fe_qpsk.orbital_pos)) continue;