fix(config): correct weight->width typo in output-dimensions filter

This commit is contained in:
Alex
2026-07-04 01:25:49 +02:00
committed by Alex
parent eddba950f8
commit dbc0e1a00a
+4 -4
View File
@@ -174,8 +174,8 @@ void Config::mergeConfig(Json::Value& a_config_, Json::Value& b_config_) {
spdlog::error("Cannot merge config, conflicting or invalid JSON types");
}
}
bool isValidOutput(const Json::Value& config, const std::string& name, const std::string& identifier,
int32_t width, int32_t height) {
bool isValidOutput(const Json::Value& config, const std::string& name,
const std::string& identifier, int32_t width, int32_t height) {
const auto isOutputMatches = [&](const std::string& output) -> bool {
if (output.substr(0, 1) == "$") {
auto* const environment_value = std::getenv(output.substr(1).c_str());
@@ -250,8 +250,8 @@ bool isValidOutput(const Json::Value& config, const std::string& name, const std
int comparison_value;
if (dimension == "height") {
comparison_value = height;
} else if (dimension == "weight") {
comparison_value = weight;
} else if (dimension == "width") {
comparison_value = width;
} else {
continue;
}