Give the default value for no preset found.

This commit is contained in:
Galindo, Alex 2023-03-08 09:07:36 +01:00
parent 082e104e69
commit d90594dcaf

View File

@ -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(