fix(config): read an unusable encoding.xml EncoderPreset as the default #5

Merged
benvin merged 1 commits from benvin/fix-encoder-preset-fallback into main 2026-09-12 17:43:53 +10:00
Member

An EncoderPreset element the enum cannot parse throws during deserialization, and BaseConfigurationManager.LoadConfiguration catches that and returns defaults, so one bad value silently discarded every other encoding setting in encoding.xml.

  • serialize EncoderPreset through a string surrogate in XML, leaving JSON untouched
  • fall back to auto for an empty, unknown or out-of-range value
An `EncoderPreset` element the enum cannot parse throws during deserialization, and `BaseConfigurationManager.LoadConfiguration` catches that and returns defaults, so one bad value silently discarded every other encoding setting in `encoding.xml`. - serialize `EncoderPreset` through a string surrogate in XML, leaving JSON untouched - fall back to `auto` for an empty, unknown or out-of-range value
unkin-agent added 1 commit 2026-09-12 16:26:10 +10:00
fix(config): read an unusable encoding.xml EncoderPreset as the default
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/pr/ci Pipeline was successful
3b60289502
An element the enum cannot parse throws, and the configuration manager
catches that and returns defaults, so one bad preset discarded every other
encoding setting.

- serialize EncoderPreset through a string surrogate in XML
- fall back to auto for an empty, unknown or out-of-range value
benvin merged commit f2166df463 into main 2026-09-12 17:43:53 +10:00
benvin deleted branch benvin/fix-encoder-preset-fallback 2026-09-12 17:43:54 +10:00
Sign in to join this conversation.