Catch case where args are a string but not preset

This commit is contained in:
Nick Mowen 2023-01-02 16:36:40 -07:00
parent 53d39a1373
commit 2a9122e5a3

View File

@ -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}"