]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
linuxdvb: set PLS code only when it differs from 1, fixes #5266
authorJaroslav Kysela <perex@perex.cz>
Wed, 17 Oct 2018 11:28:54 +0000 (13:28 +0200)
committerJaroslav Kysela <perex@perex.cz>
Wed, 17 Oct 2018 11:28:57 +0000 (13:28 +0200)
src/input/mpegts/linuxdvb/linuxdvb_frontend.c

index 115bed0997c5ebcb80e89ead43e19e70b9e31cec..186280db52c132925fb30a09617d5512a6f45452 100644 (file)
@@ -1881,7 +1881,9 @@ linuxdvb_frontend_tune0
 #if DVB_VER_ATLEAST(5,9)
       S2CMD(DTV_STREAM_ID,       r);
 #if DVB_VER_ATLEAST(5,11)
-      S2CMD(DTV_SCRAMBLING_SEQUENCE_INDEX, dvb_sat_pls(dmc));
+      r = dvb_sat_pls(dmc);
+      if (r != 1) /* default PLS gold code */
+        S2CMD(DTV_SCRAMBLING_SEQUENCE_INDEX, r);
 #endif
 #elif DVB_VER_ATLEAST(5,3)
       S2CMD(DTV_DVBT2_PLP_ID,    r);
@@ -1922,7 +1924,9 @@ linuxdvb_frontend_tune0
 #if DVB_VER_ATLEAST(5,9)
     S2CMD(DTV_STREAM_ID,       r);
 #if DVB_VER_ATLEAST(5,11)
-    S2CMD(DTV_SCRAMBLING_SEQUENCE_INDEX, dvb_sat_pls(dmc));
+    r = dvb_sat_pls(dmc);
+    if (r != 1) /* default PLS gold code */
+      S2CMD(DTV_SCRAMBLING_SEQUENCE_INDEX, r);
 #endif
 #elif DVB_VER_ATLEAST(5,3)
     S2CMD(DTV_DVBT2_PLP_ID,    r);