mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-03 17:55:21 +03:00
Cast to str
This commit is contained in:
parent
1062e26b51
commit
c28471aef7
@ -91,7 +91,7 @@ def get_gpu_stats(config: FrigateConfig) -> Optional[dict[str, dict]]:
|
|||||||
args = (
|
args = (
|
||||||
" ".join(camera.ffmpeg.hwaccel_args)
|
" ".join(camera.ffmpeg.hwaccel_args)
|
||||||
if camera.ffmpeg.hwaccel_args is list
|
if camera.ffmpeg.hwaccel_args is list
|
||||||
else camera.ffmpeg.hwaccel_args
|
else str(camera.ffmpeg.hwaccel_args)
|
||||||
)
|
)
|
||||||
|
|
||||||
if args and args not in hwaccel_args:
|
if args and args not in hwaccel_args:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user