mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-08 20:25:26 +03:00
Add some explanatory comments
This commit is contained in:
parent
fa59fb13f4
commit
9eef9da6bf
@ -202,10 +202,12 @@ def get_bandwidth_stats(config) -> dict[str, dict]:
|
||||
|
||||
|
||||
def is_vaapi_amd_driver() -> bool:
|
||||
# Use the explicitly configured driver, if available
|
||||
driver = os.environ.get(DRIVER_ENV_VAR)
|
||||
if driver:
|
||||
return driver == DRIVER_AMD
|
||||
|
||||
# Otherwise, ask vainfo what is has autodetected
|
||||
p = vainfo_hwaccel()
|
||||
|
||||
if p.returncode != 0:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user