mirror of
				https://github.com/vdr-projects/vdr.git
				synced 2025-03-01 10:50:46 +00:00 
			
		
		
		
	Removed logging DVB API 5 signal statistics, because it happened too often if EPG scan is active
This commit is contained in:
		
							
								
								
									
										2
									
								
								HISTORY
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								HISTORY
									
									
									
									
									
								
							| @@ -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). | ||||
|   | ||||
							
								
								
									
										14
									
								
								dvbdevice.c
									
									
									
									
									
								
							
							
						
						
									
										14
									
								
								dvbdevice.c
									
									
									
									
									
								
							| @@ -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; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user