'Ugly' fix for dissapearing metadata
This commit is contained in:
parent
c93c0a8b5f
commit
a604d616f7
2 changed files with 13 additions and 1 deletions
|
@ -57,7 +57,16 @@ namespace Mist {
|
|||
long long unsigned int firstms = 0xFFFFFFFFFFFFFFFFull;
|
||||
long long unsigned int lastms = 0;
|
||||
for (std::map<unsigned int, DTSC::Track>::iterator it = myMeta.tracks.begin(); it != myMeta.tracks.end(); it++) {
|
||||
if (it->second.firstms < firstms) {
|
||||
if (it->second.init.size()){
|
||||
if (!initData.count(it->first) || initData[it->first] != it->second.init){
|
||||
initData[it->first] = it->second.init;
|
||||
}
|
||||
}else{
|
||||
if (initData.count(it->first)){
|
||||
it->second.init = initData[it->first];
|
||||
}
|
||||
}
|
||||
if (it->second.firstms < firstms){
|
||||
firstms = it->second.firstms;
|
||||
}
|
||||
if (it->second.lastms > lastms){
|
||||
|
|
|
@ -33,6 +33,9 @@ namespace Mist {
|
|||
std::map<unsigned long, std::map<unsigned long, DTSCPageData> > bufferLocations;
|
||||
std::map<unsigned long, char *> pushLocation;
|
||||
inputBuffer * singleton;
|
||||
|
||||
//This is used for an ugly fix to prevent metadata from dissapearing in some cases.
|
||||
std::map<unsigned long, std::string> initData;
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue