]> 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>
Thu, 18 Oct 2018 06:58:18 +0000 (08:58 +0200)
src/input/mpegts/linuxdvb/linuxdvb_frontend.c

index 186280db52c132925fb30a09617d5512a6f45452..3b468f48ea3e675dfda74b1ca4df1fec78b57cbf 100644 (file)
@@ -1882,7 +1882,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)
@@ -1925,7 +1925,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)