You've already forked libopenshot
mirror of
https://github.com/OpenShot/libopenshot.git
synced 2026-03-02 08:53:52 -08:00
CVTracker: Fix bug in JSON error handling
This commit is contained in:
@@ -314,20 +314,22 @@ void CVTracker::SetJsonValue(const Json::Value root) {
|
||||
double h = root["region"]["normalized_height"].asDouble();
|
||||
cv::Rect2d prev_bbox(x,y,w,h);
|
||||
bbox = prev_bbox;
|
||||
|
||||
if (!root["region"]["first-frame"].isNull()){
|
||||
start = root["region"]["first-frame"].asInt64();
|
||||
json_interval = true;
|
||||
}
|
||||
else{
|
||||
processingController->SetError(true, "No first-frame");
|
||||
error = true;
|
||||
}
|
||||
|
||||
}
|
||||
else{
|
||||
processingController->SetError(true, "No initial bounding box selected");
|
||||
error = true;
|
||||
}
|
||||
|
||||
if (!root["region"]["first-frame"].isNull()){
|
||||
start = root["region"]["first-frame"].asInt64();
|
||||
json_interval = true;
|
||||
}
|
||||
else{
|
||||
processingController->SetError(true, "No first-frame");
|
||||
error = true;
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user