]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
linuxdvb: catch FE_SCALE_NOT_AVAILABLE in DVBv5 signal strength
authorDaniel Scheller <d.scheller@gmx.net>
Fri, 23 Jun 2017 16:50:34 +0000 (18:50 +0200)
committerJaroslav Kysela <perex@perex.cz>
Fri, 23 Jun 2017 19:51:53 +0000 (21:51 +0200)
src/input/mpegts/linuxdvb/linuxdvb_frontend.c

index 6e41a22ca1ff23e289128b83ea359d7bf808e4b8..2825c29f246d17c549a5e91ce01b8ea37baa71fe 100644 (file)
@@ -1011,6 +1011,10 @@ linuxdvb_frontend_monitor ( void *aux )
         mmi->tii_stats.signal = sig_multiply(fe_properties[0].u.st.stat[0].svalue, lfe->lfe_sig_multiplier);
         gotprop = 1;
       }
+      else if(fe_properties[0].u.st.stat[0].scale == FE_SCALE_NOT_AVAILABLE) {
+        mmi->tii_stats.snr_scale = SIGNAL_STATUS_SCALE_UNKNOWN;
+        gotprop = 1;
+      }
       else {
         ioctl_bad(lfe, 1);
         mmi->tii_stats.signal_scale = SIGNAL_STATUS_SCALE_UNKNOWN;