Changed default track selection ordering for VoD files back to previous ordering, live is still reversed.
This commit is contained in:
parent
c47162bf03
commit
ae8760ee08
1 changed files with 15 additions and 5 deletions
|
@ -322,6 +322,15 @@ namespace Mist{
|
|||
if (!found){
|
||||
jsonForEach((*itb), itc){
|
||||
if (found){break;}
|
||||
if (myMeta.live){
|
||||
for (std::map<unsigned int, DTSC::Track>::reverse_iterator trit = myMeta.tracks.rbegin(); trit != myMeta.tracks.rend(); trit++){
|
||||
if (trit->second.codec == (*itc).asStringRef() || (*itc).asStringRef() == "*"){
|
||||
selectedTracks.insert(trit->first);
|
||||
found = true;
|
||||
if ((*itc).asStringRef() != "*"){break;}
|
||||
}
|
||||
}
|
||||
}else{
|
||||
for (std::map<unsigned int, DTSC::Track>::iterator trit = myMeta.tracks.begin(); trit != myMeta.tracks.end(); trit++){
|
||||
if (trit->second.codec == (*itc).asStringRef() || (*itc).asStringRef() == "*"){
|
||||
selectedTracks.insert(trit->first);
|
||||
|
@ -334,6 +343,7 @@ namespace Mist{
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (Util::Config::printDebugLevel >= DLVL_MEDIUM){
|
||||
//print the selected tracks
|
||||
|
|
Loading…
Add table
Reference in a new issue