From e73485ae6a3fbf22a7440c6af831863cf5565ff7 Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Tue, 22 Oct 2024 16:50:56 -0600 Subject: [PATCH] Catch empty bytes --- 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: