Catch empty bytes

This commit is contained in:
Nicolas Mowen 2024-10-22 16:50:56 -06:00
parent ad308252a1
commit e73485ae6a

View File

@ -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: