]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
satip client: do not set auto modulation, fixes #3821
authorJaroslav Kysela <perex@perex.cz>
Tue, 24 May 2016 18:15:11 +0000 (20:15 +0200)
committerJaroslav Kysela <perex@perex.cz>
Tue, 24 May 2016 18:15:11 +0000 (20:15 +0200)
src/input/mpegts/satip/satip_rtsp.c

index 4ea84677b67d1db9b5354097cdeb214b025fe756..83bfe73b47958bb538b1f0725e1d8b2a6da4d685 100644 (file)
@@ -164,7 +164,8 @@ satip_rtsp_setup( http_client_t *hc, int src, int fe,
     satip_rtsp_add_val("sr", buf, dmc->u.dmc_fe_qpsk.symbol_rate);
     ADD(dmc_fe_delsys,              msys,  "dvbs");
     if (dmc->dmc_fe_modulation != DVB_MOD_NONE &&
-        dmc->dmc_fe_modulation != DVB_MOD_AUTO)
+        dmc->dmc_fe_modulation != DVB_MOD_AUTO &&
+        dmc->dmc_fe_modulation != DVB_MOD_QAM_AUTO)
       ADD(dmc_fe_modulation,        mtype, "qpsk");
     ADD(u.dmc_fe_qpsk.polarisation, pol,   "h"   );
     if (dmc->u.dmc_fe_qpsk.fec_inner != DVB_FEC_NONE &&
@@ -186,7 +187,10 @@ satip_rtsp_setup( http_client_t *hc, int src, int fe,
     satip_rtsp_add_val("freq", buf, dmc->dmc_fe_freq / 1000);
     satip_rtsp_add_val("sr", buf, dmc->u.dmc_fe_qam.symbol_rate);
     ADD(dmc_fe_delsys,              msys,  "dvbc");
-    ADD(dmc_fe_modulation,          mtype, "64qam");
+    if (dmc->dmc_fe_modulation != DVB_MOD_AUTO &&
+        dmc->dmc_fe_modulation != DVB_MOD_NONE &&
+        dmc->dmc_fe_modulation != DVB_MOD_QAM_AUTO)
+      ADD(dmc_fe_modulation,          mtype, "64qam");
     /* missing plp */
     if (dmc->u.dmc_fe_qam.fec_inner != DVB_FEC_NONE &&
         dmc->u.dmc_fe_qam.fec_inner != DVB_FEC_AUTO)