From: Jaroslav Kysela Date: Wed, 17 Oct 2018 11:28:54 +0000 (+0200) Subject: linuxdvb: set PLS code only when it differs from 1, fixes #5266 X-Git-Tag: v4.2.8~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9cfe4a5b83e490184a920e5f71801b984bf41489;p=thirdparty%2Ftvheadend.git linuxdvb: set PLS code only when it differs from 1, fixes #5266 --- diff --git a/src/input/mpegts/linuxdvb/linuxdvb_frontend.c b/src/input/mpegts/linuxdvb/linuxdvb_frontend.c index 7d2371f92..8bb1c58a9 100644 --- a/src/input/mpegts/linuxdvb/linuxdvb_frontend.c +++ b/src/input/mpegts/linuxdvb/linuxdvb_frontend.c @@ -1836,7 +1836,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); @@ -1877,7 +1879,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);