mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-04-01 21:04:52 +03:00
when ffmpeg processes restart, there's a brief window where the preview frame generation pipeline is torn down and restarted. before these changes, ffmpeg only restarted on crash/stall recovery or full Frigate restart. Now that ffmpeg restarts happen on-demand via config changes, there's a higher chance a frontend request hits the preview_mp4 or preview_gif endpoints during that brief restart window when the directory might not exist yet. The existing os.listdir() call would throw FileNotFoundError without a directory existence check. this fix just checks if the directory exists and returns 404 if not, exactly how preview_thumbnail already handles the same scenario a few lines below |
||
|---|---|---|
| .. | ||
| defs | ||
| __init__.py | ||
| app.py | ||
| auth.py | ||
| camera.py | ||
| chat.py | ||
| classification.py | ||
| debug_replay.py | ||
| event.py | ||
| export.py | ||
| fastapi_app.py | ||
| media.py | ||
| notification.py | ||
| preview.py | ||
| record.py | ||
| review.py | ||