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-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b37656e74dc4387e2c2e1b4252bf8abe4fb5319f;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 115bed099..186280db5 100644 --- a/src/input/mpegts/linuxdvb/linuxdvb_frontend.c +++ b/src/input/mpegts/linuxdvb/linuxdvb_frontend.c @@ -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);