Updated DTSC::isFixed
This commit is contained in:
parent
79b4772c3d
commit
12abcea138
1 changed files with 2 additions and 8 deletions
10
lib/dtsc.cpp
10
lib/dtsc.cpp
|
@ -968,12 +968,6 @@ DTSC::File::~File(){
|
||||||
|
|
||||||
|
|
||||||
bool DTSC::isFixed(JSON::Value & metadata){
|
bool DTSC::isFixed(JSON::Value & metadata){
|
||||||
if (metadata.isMember("is_fixed")){return true;}
|
DTSC::Meta testFixed(metadata);
|
||||||
if ( !metadata.isMember("tracks")){return false;}
|
return testFixed.isFixed();
|
||||||
for (JSON::ObjIter it = metadata["tracks"].ObjBegin(); it != metadata["tracks"].ObjEnd(); it++){
|
|
||||||
if (!(it->second.isMember("keys") && it->second["keys"].isArray() && it->second["keys"][0u].isMember("bpos"))){
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue