mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-03 01:35:22 +03:00
Immediately set camera_fps to 0 if camera crashes
This commit is contained in:
parent
1d648ed605
commit
8aaef87e37
@ -176,6 +176,7 @@ def capture_frames(
|
||||
try:
|
||||
frame_buffer[:] = ffmpeg_process.stdout.read(frame_size)
|
||||
except Exception as e:
|
||||
fps.value = 0
|
||||
logger.error(f"{camera_name}: Unable to read frames from ffmpeg process.")
|
||||
|
||||
if ffmpeg_process.poll() != None:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user