From d715a8c290b862589686face089ccc2d69660c29 Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Tue, 22 Oct 2024 18:07:54 -0600 Subject: [PATCH] Catch empty bytes (#14521) --- frigate/api/media.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frigate/api/media.py b/frigate/api/media.py index d0561bb2c..d6f6304df 100644 --- a/frigate/api/media.py +++ b/frigate/api/media.py @@ -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: