]> 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 20:15:49 +0000 (22:15 +0200)
src/input/mpegts/linuxdvb/linuxdvb_frontend.c

index c1a02361f13ffb85634b532b14ec4c63b0cec1b1..de8f1664d4693416979fb23c8a06854ab2cd0d8d 100644 (file)
@@ -981,6 +981,10 @@ linuxdvb_frontend_monitor ( void *aux )
         mmi->tii_stats.signal = fe_properties[0].u.st.stat[0].svalue;
         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;