Merge branch 'development' into LTS_development
# Conflicts: # src/output/output.cpp
This commit is contained in:
commit
310e7bc5f9
4 changed files with 26 additions and 6 deletions
|
@ -137,6 +137,14 @@ namespace Util{
|
|||
return result.size() == positions.size();
|
||||
}
|
||||
|
||||
void stringToLower(std::string & val){
|
||||
int i = 0;
|
||||
while(val[i]){
|
||||
val.at(i) = tolower(val.at(i));
|
||||
i++;
|
||||
}
|
||||
}
|
||||
|
||||
/// 64-bits version of ftell
|
||||
uint64_t ftell(FILE *stream){
|
||||
/// \TODO Windows implementation (e.g. _ftelli64 ?)
|
||||
|
|
|
@ -9,6 +9,8 @@ namespace Util{
|
|||
bool createPath(const std::string &path);
|
||||
bool stringScan(const std::string &src, const std::string &pattern,
|
||||
std::deque<std::string> &result);
|
||||
void stringToLower(std::string &val);
|
||||
|
||||
uint64_t ftell(FILE *stream);
|
||||
uint64_t fseek(FILE *stream, uint64_t offset, int whence);
|
||||
|
||||
|
|
|
@ -230,7 +230,7 @@ namespace Mist {
|
|||
}
|
||||
}
|
||||
if (i == 1024){
|
||||
FAIL_MSG("Could not erase page %lu for track %lu->%lu stream %s from track index!", pageNumber, tid, mapTid, streamName.c_str());
|
||||
ERROR_MSG("Could not erase page %lu for track %lu->%lu stream %s from track index!", pageNumber, tid, mapTid, streamName.c_str());
|
||||
}
|
||||
|
||||
if (!nProxy.pagesByTrack.count(tid)){
|
||||
|
|
|
@ -472,6 +472,7 @@ 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);
|
||||
|
@ -479,6 +480,15 @@ namespace Mist{
|
|||
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);
|
||||
found = true;
|
||||
if ((*itc).asStringRef() != "*"){break;}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue