]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
SAT>IP: DVB-S setup - pass only configured parameters (fec, rolloff, pilot)
authorJaroslav Kysela <perex@perex.cz>
Sun, 20 Apr 2014 11:10:59 +0000 (13:10 +0200)
committerJaroslav Kysela <perex@perex.cz>
Mon, 5 May 2014 20:00:37 +0000 (22:00 +0200)
src/input/mpegts/satip/satip_rtsp.c

index f02de569ca839b4bad539b96900ecbe49e88b760..280ea0245350f4dc57837c3667f0fe6295289fc8 100644 (file)
@@ -162,11 +162,18 @@ satip_rtsp_setup( http_client_t *hc, int src, int fe,
       dmc->dmc_fe_delsys == DVB_SYS_DVBS2) {
     satip_rtsp_add_val("sr", buf, dmc->u.dmc_fe_qpsk.symbol_rate);
     ADD(dmc_fe_delsys,              msys,  "dvbs");
-    ADD(dmc_fe_modulation,          mtype, "qpsk");
+    if (dmc->dmc_fe_modulation != DVB_MOD_NONE &&
+        dmc->dmc_fe_modulation != DVB_MOD_AUTO)
+      ADD(dmc_fe_modulation,        mtype, "qpsk");
     ADD(u.dmc_fe_qpsk.polarisation, pol,   "h"   );
-    ADD(u.dmc_fe_qpsk.fec_inner,    fec,   "auto");
-    ADD(dmc_fe_rolloff,             ro,    "0.35");
-    if (dmc->dmc_fe_pilot != DVB_PILOT_AUTO)
+    if (dmc->u.dmc_fe_qpsk.fec_inner != DVB_FEC_NONE &&
+        dmc->u.dmc_fe_qpsk.fec_inner != DVB_FEC_AUTO)
+      ADD(u.dmc_fe_qpsk.fec_inner,  fec,   "auto");
+    if (dmc->dmc_fe_rolloff != DVB_ROLLOFF_NONE &&
+        dmc->dmc_fe_rolloff != DVB_ROLLOFF_AUTO)
+      ADD(dmc_fe_rolloff,           ro,    "0.35");
+    if (dmc->dmc_fe_pilot != DVB_PILOT_NONE &&
+        dmc->dmc_fe_pilot != DVB_PILOT_AUTO)
       ADD(dmc_fe_pilot,             plts,  "auto");
   } else if (dmc->dmc_fe_delsys == DVB_SYS_DVBC_ANNEX_A ||
              dmc->dmc_fe_delsys == DVB_SYS_DVBC_ANNEX_B ||