mirror of
				https://github.com/blakeblackshear/frigate.git
				synced 2025-10-27 10:52:11 +01:00 
			
		
		
		
	Catch empty bytes (#14521)
This commit is contained in:
		
							parent
							
								
									ad308252a1
								
							
						
					
					
						commit
						d715a8c290
					
				@ -461,7 +461,7 @@ def recording_clip(
 | 
			
		||||
        ) as ffmpeg:
 | 
			
		||||
            while True:
 | 
			
		||||
                data = ffmpeg.stdout.read(1024)
 | 
			
		||||
                if data is not None:
 | 
			
		||||
                if data is not None and len(data) > 0:
 | 
			
		||||
                    yield data
 | 
			
		||||
                else:
 | 
			
		||||
                    if ffmpeg.returncode and ffmpeg.returncode != 0:
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user