Allow simple string for encoder configuration

This commit is contained in:
Patrick Nicolas
2025-12-11 13:42:16 +01:00
parent 6f32f049d7
commit 5a669e71f5
3 changed files with 68 additions and 48 deletions
+4
View File
@@ -168,6 +168,10 @@ configuration::configuration()
encoders[i] = parse_encoder(it->at(i));
}
}
else if (it->is_string())
{
std::ranges::fill(encoders, encoder{.name = *it});
}
else
{
std::ranges::fill(encoders, parse_encoder(*it));