mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-04 18:25:22 +03:00
Give the default value for no preset found.
This commit is contained in:
parent
082e104e69
commit
d90594dcaf
@ -205,7 +205,11 @@ def _parse_rotation_scale(
|
||||
else: # Rotation not need or not supported
|
||||
return ""
|
||||
|
||||
return PRESETS_HW_ACCEL_SCALE_ROTATION.get(arg, "").get(mode, "").format(transpose)
|
||||
return (
|
||||
PRESETS_HW_ACCEL_SCALE_ROTATION.get(arg, {"detect": "", "record": ""})
|
||||
.get(mode, "")
|
||||
.format(transpose)
|
||||
)
|
||||
|
||||
|
||||
def parse_preset_hardware_acceleration_scale(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user