Allow simple string for encoder configuration
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user