1
0
mirror of https://github.com/VDR4Arch/vdr.git synced 2023-10-10 13:36:52 +02:00

Removed logging DVB API 5 signal statistics, because it happened too often if EPG scan is active

This commit is contained in:
Klaus Schmidinger 2017-04-18 13:11:51 +02:00
parent d1ff365767
commit f90edc1e8b
2 changed files with 1 additions and 15 deletions

View File

@ -8980,6 +8980,4 @@ Video Disk Recorder Revision History
would be deleted by Skip().
- The new function cDevice::SignalStats() (if implemented by an actual device) returns
statistics about the currently received signal.
- If DVB API 5 signal statistics are available for a cDvbDevice, it now logs them
whenever the tuner acquires a lock (suggested by Dietmar Spingler).
- Updated the Finnish OSD texts (thanks to Rolf Ahrenberg).

View File

@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
* $Id: dvbdevice.c 4.7 2017/04/17 15:02:44 kls Exp $
* $Id: dvbdevice.c 4.8 2017/04/18 13:11:07 kls Exp $
*/
#include "dvbdevice.h"
@ -1155,18 +1155,6 @@ void cDvbTuner::Action(void)
isyslog("frontend %d/%d regained lock on channel %d (%s), tp %d", adapter, frontend, channel.Number(), channel.Name(), channel.Transponder());
LostLock = false;
}
if (tunerStatus == tsTuned) {
if (SysLogLevel >= 3) {
int Valid;
double Strength, Cnr;
if (GetSignalStats(Valid, &Strength, &Cnr)) {
cString s = cString::sprintf("frontend %d/%d locked with signal", adapter, frontend);
if ((Valid & DTV_STAT_VALID_STRENGTH) != 0) s = cString::sprintf("%s STR=%1.1fdBm", *s, Strength);
if ((Valid & DTV_STAT_VALID_CNR) != 0) s = cString::sprintf("%s CNR=%1.1fdB", *s, Cnr);
dsyslog("%s", *s);
}
}
}
tunerStatus = tsLocked;
locked.Broadcast();
lastTimeoutReport = 0;