MCPcopy Create free account
hub / github.com/OpenShot/libopenshot / SetJsonValue

Method SetJsonValue

src/CacheDisk.cpp:468–481  ·  view source on GitHub ↗

Load Json::Value into this object

Source from the content-addressed store, hash-verified

466
467// Load Json::Value into this object
468void CacheDisk::SetJsonValue(const Json::Value root) {
469
470 // Close timeline before we do anything (this also removes all open and closing clips)
471 Clear();
472
473 // Set parent data
474 CacheBase::SetJsonValue(root);
475
476 if (!root["type"].isNull())
477 cache_type = root["type"].asString();
478 if (!root["path"].isNull())
479 // Update duration of timeline
480 InitPath(root["path"].asString());
481}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected