]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
dvb: fix loss of SNR display (bug #3927)
authorOliver O <Oliver.O456i@gmail.com>
Fri, 19 Aug 2016 16:03:31 +0000 (18:03 +0200)
committerJaroslav Kysela <perex@perex.cz>
Sat, 20 Aug 2016 14:50:02 +0000 (16:50 +0200)
src/input/mpegts/linuxdvb/linuxdvb_frontend.c

index 8cb8874ab2f5b93a11fbd3066f69f22c88d17432..10158ba8882433e38690bc2137ae365415eb4437 100644 (file)
@@ -672,6 +672,10 @@ linuxdvb_frontend_monitor ( void *aux )
         mmi->tii_stats.snr = fe_properties[3].u.st.stat[0].svalue;
         gotprop = 1;
       }
+      else if(fe_properties[3].u.st.stat[0].scale == FE_SCALE_NOT_AVAILABLE) {
+        mmi->tii_stats.snr_scale = SIGNAL_STATUS_SCALE_UNKNOWN;
+        gotprop = 1;
+      }
       else {
         ioctl_bad(lfe, 6);
         mmi->tii_stats.snr_scale = SIGNAL_STATUS_SCALE_UNKNOWN;