mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-03 09:45:22 +03:00
Check to remove none
This commit is contained in:
parent
bf06f4d648
commit
e200718046
@ -92,11 +92,14 @@ def get_gpu_stats(config: FrigateConfig) -> dict[str, dict]:
|
||||
else None,
|
||||
config.cameras.values(),
|
||||
)
|
||||
).remove(None)
|
||||
)
|
||||
stats: dict[str, dict] = {}
|
||||
|
||||
if not hwaccel_args:
|
||||
return None
|
||||
if None in hwaccel_args:
|
||||
hwaccel_args.remove(None)
|
||||
|
||||
if not hwaccel_args:
|
||||
return None
|
||||
|
||||
for args in hwaccel_args:
|
||||
if "cuvid" in args:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user