mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-21 19:07:46 +01:00
Catch case where args are a string but not preset (#4864)
* Catch case where args are a string but not preset * Fix formatting
This commit is contained in:
parent
abc40f2581
commit
ceab294840
@ -247,7 +247,7 @@ def parse_preset_hardware_acceleration_scale(
|
||||
height: int,
|
||||
) -> list[str]:
|
||||
"""Return the correct scaling preset or default preset if none is set."""
|
||||
if not isinstance(arg, str):
|
||||
if not isinstance(arg, str) or " " in arg:
|
||||
scale = PRESETS_HW_ACCEL_SCALE["default"].copy()
|
||||
scale[1] = str(fps)
|
||||
scale[3] = f"{width}x{height}"
|
||||
|
Loading…
Reference in New Issue
Block a user