mirror of
				https://github.com/rofafor/vdr-plugin-satip.git
				synced 2023-10-10 11:37:42 +00:00 
			
		
		
		
	Logging improvements.
Logging of RTSP command summaries on debug 5 Logging for Performance/Locking on debug 6 Original patch tweaked and optimized by Rolf Ahrenberg.
This commit is contained in:
		
				
					committed by
					
						 Rolf Ahrenberg
						Rolf Ahrenberg
					
				
			
			
				
	
			
			
			
						parent
						
							60a2b1fecf
						
					
				
				
					commit
					913cdbef66
				
			
							
								
								
									
										14
									
								
								tuner.c
									
									
									
									
									
								
							
							
						
						
									
										14
									
								
								tuner.c
									
									
									
									
									
								
							| @@ -5,6 +5,9 @@ | ||||
|  * | ||||
|  */ | ||||
|  | ||||
| #define __STDC_FORMAT_MACROS // Required for format specifiers | ||||
| #include <inttypes.h> | ||||
|  | ||||
| #include "common.h" | ||||
| #include "config.h" | ||||
| #include "discover.h" | ||||
| @@ -245,8 +248,19 @@ void cSatipTuner::ProcessVideoData(u_char *bufferP, int lengthP) | ||||
| { | ||||
|   debug8("%s (, %d) [device %d]", __PRETTY_FUNCTION__, lengthP, deviceIdM); | ||||
|   if (lengthP > 0) { | ||||
|      uint64_t elapsed; | ||||
|      cTimeMs processing(0); | ||||
|  | ||||
|      AddTunerStatistic(lengthP); | ||||
|      elapsed = processing.Elapsed(); | ||||
|      if (elapsed > 1) | ||||
|         debug6("%s AddTunerStatistic() took %" PRIu64 " ms [device %d]", __PRETTY_FUNCTION__, elapsed, deviceIdM); | ||||
|  | ||||
|      processing.Set(0); | ||||
|      deviceM->WriteData(bufferP, lengthP); | ||||
|      elapsed = processing.Elapsed(); | ||||
|      if (elapsed > 1) | ||||
|         debug6("%s WriteData() took %" PRIu64 " ms [device %d]", __FUNCTION__, elapsed, deviceIdM); | ||||
|      } | ||||
|   reConnectM.Set(eConnectTimeoutMs); | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user