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){
|
||||
if (metadata.isMember("is_fixed")){return true;}
|
||||
if ( !metadata.isMember("tracks")){return false;}
|
||||
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;
|
||||
DTSC::Meta testFixed(metadata);
|
||||
return testFixed.isFixed();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue