mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-04 18:25:22 +03:00
Formatting
This commit is contained in:
parent
3c7b5e5f3c
commit
f96bd5d9b5
@ -978,7 +978,11 @@ def ffprobe_stream(path: str) -> sp.CompletedProcess:
|
|||||||
|
|
||||||
def vainfo_hwaccel(device_name: Optional[str]) -> sp.CompletedProcess:
|
def vainfo_hwaccel(device_name: Optional[str]) -> sp.CompletedProcess:
|
||||||
"""Run vainfo."""
|
"""Run vainfo."""
|
||||||
ffprobe_cmd = ["vainfo"] if not device_name else ["vainfo", "--display", "drm", "--device", f"/dev/dri/{device_name}"]
|
ffprobe_cmd = (
|
||||||
|
["vainfo"]
|
||||||
|
if not device_name
|
||||||
|
else ["vainfo", "--display", "drm", "--device", f"/dev/dri/{device_name}"]
|
||||||
|
)
|
||||||
return sp.run(ffprobe_cmd, capture_output=True)
|
return sp.run(ffprobe_cmd, capture_output=True)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user