You've already forked libopenshot
mirror of
https://github.com/OpenShot/libopenshot.git
synced 2026-03-02 08:53:52 -08:00
Changed None to empty string, corrected dynamic pointers
This commit is contained in:
@@ -370,7 +370,7 @@ void TrackedObjectBBox::SetJsonValue(const Json::Value root)
|
||||
{
|
||||
|
||||
// Set the Id by the given JSON object
|
||||
if (!root["box_id"].isNull() && root["box_id"].asString() != "None")
|
||||
if (!root["box_id"].isNull() && root["box_id"].asString() != "")
|
||||
Id(root["box_id"].asString());
|
||||
|
||||
// Set the BaseFps by the given JSON object
|
||||
@@ -395,7 +395,7 @@ void TrackedObjectBBox::SetJsonValue(const Json::Value root)
|
||||
|
||||
// Set the id of the child clip
|
||||
// Does not allow to link to the parent clip
|
||||
if (!root["child_clip_id"].isNull() && root["box_id"].asString() != "None"){
|
||||
if (!root["child_clip_id"].isNull() && root["box_id"].asString() != ""){
|
||||
Clip* parentClip = (Clip *) ParentClip();
|
||||
|
||||
if(parentClip && (root["child_clip_id"].asString() != parentClip->Id())){
|
||||
|
||||
Reference in New Issue
Block a user