]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
linuxdvb: fix again the PLS code skip when the default value is used
authorJaroslav Kysela <perex@perex.cz>
Thu, 18 Oct 2018 06:58:18 +0000 (08:58 +0200)
committerJaroslav Kysela <perex@perex.cz>
Tue, 20 Nov 2018 13:06:20 +0000 (14:06 +0100)
src/input/mpegts/linuxdvb/linuxdvb_frontend.c

index 8bb1c58a960c79f0efbb5539130c4881e78d0e2e..2d20a0955d2df0b2a1b27826d97211944e08f406 100644 (file)
@@ -1837,7 +1837,7 @@ linuxdvb_frontend_tune0
       S2CMD(DTV_STREAM_ID,       r);
 #if DVB_VER_ATLEAST(5,11)
       r = dvb_sat_pls(dmc);
-      if (r != 1) /* default PLS gold code */
+      if (r != 0) /* default PLS gold code */
         S2CMD(DTV_SCRAMBLING_SEQUENCE_INDEX, r);
 #endif
 #elif DVB_VER_ATLEAST(5,3)
@@ -1880,7 +1880,7 @@ linuxdvb_frontend_tune0
     S2CMD(DTV_STREAM_ID,       r);
 #if DVB_VER_ATLEAST(5,11)
     r = dvb_sat_pls(dmc);
-    if (r != 1) /* default PLS gold code */
+    if (r != 0) /* default PLS gold code */
       S2CMD(DTV_SCRAMBLING_SEQUENCE_INDEX, r);
 #endif
 #elif DVB_VER_ATLEAST(5,3)