You've already forked libopenshot
mirror of
https://github.com/OpenShot/libopenshot.git
synced 2026-03-02 08:53:52 -08:00
Improved Json methods to correct work with swig and inheritance.
This commit is contained in:
@@ -183,7 +183,7 @@ Json::Value WriterBase::JsonValue() {
|
||||
}
|
||||
|
||||
// Load JSON string into this object
|
||||
void WriterBase::Json(string value) throw(InvalidJSON) {
|
||||
void WriterBase::SetJson(string value) throw(InvalidJSON) {
|
||||
|
||||
// Parse JSON string into JSON objects
|
||||
Json::Value root;
|
||||
@@ -196,7 +196,7 @@ void WriterBase::Json(string value) throw(InvalidJSON) {
|
||||
try
|
||||
{
|
||||
// Set all values that match
|
||||
Json(root);
|
||||
SetJsonValue(root);
|
||||
}
|
||||
catch (exception e)
|
||||
{
|
||||
@@ -206,7 +206,7 @@ void WriterBase::Json(string value) throw(InvalidJSON) {
|
||||
}
|
||||
|
||||
// Load Json::JsonValue into this object
|
||||
void WriterBase::Json(Json::Value root) {
|
||||
void WriterBase::SetJsonValue(Json::Value root) {
|
||||
|
||||
// Set data from Json (if key is found)
|
||||
if (root["has_video"] != Json::nullValue)
|
||||
|
||||
Reference in New Issue
Block a user