mirror of
				https://github.com/rofafor/vdr-plugin-satip.git
				synced 2023-10-10 11:37:42 +00:00 
			
		
		
		
	Bugfix: Write data to tsbuffer only if DvrOpen has been called. This avoids Buffer Overflow when not recording or viewing live.
This commit is contained in:
		
				
					committed by
					
						
						Rolf Ahrenberg
					
				
			
			
				
	
			
			
			
						parent
						
							6d68ef3e49
						
					
				
				
					commit
					c966d28d13
				
			
							
								
								
									
										2
									
								
								device.c
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							
							
						
						
									
										2
									
								
								device.c
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							@@ -408,7 +408,7 @@ void cSatipDevice::WriteData(uchar *bufferP, int lengthP)
 | 
			
		||||
{
 | 
			
		||||
  //debug("cSatipDevice::%s(%u)", __FUNCTION__, deviceIndexM);
 | 
			
		||||
  // Fill up TS buffer
 | 
			
		||||
  if (tsBufferM) {
 | 
			
		||||
  if (isOpenDvrM && tsBufferM) {
 | 
			
		||||
     int len = tsBufferM->Put(bufferP, lengthP);
 | 
			
		||||
     if (len != lengthP)
 | 
			
		||||
        tsBufferM->ReportOverflow(lengthP - len);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user