mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-12-03 10:47:06 +03:00
don't send deletes for defaulted ffmpeg args and relabel None as Default
Choosing None on global input args or record output args, or switching record_sub back to "Same as record", sent a delete for a key that is usually missing from the YAML, so saving failed with "Error updating config". None also never removed the args, it reset them to the default preset. The option is now Default and is detected when the value equals the schema default. Choosing it on a default value changes nothing, and on a custom value it still deletes the key. "Same as record" now saves an empty list, which is what the backend reads as "use the record args", so it also works on cameras, where a delete fell back to the global record_sub.
This commit is contained in:
@@ -1607,7 +1607,7 @@
|
||||
"preset": "Preset",
|
||||
"manual": "Manual arguments",
|
||||
"inherit": "Inherit from camera setting",
|
||||
"none": "None",
|
||||
"default": "Default",
|
||||
"auto": "Auto",
|
||||
"autoDescription": "Frigate detects Nvidia or VAAPI hardware. After saving, this field shows the detected preset, or Disabled if none is found. Other hardware needs a preset.",
|
||||
"disabled": "Disabled",
|
||||
|
||||
Reference in New Issue
Block a user