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