Fixed live pushing when more than 2 tracks present.
This commit is contained in:
parent
acc462c281
commit
6f933bdb97
1 changed files with 3 additions and 1 deletions
|
@ -328,7 +328,9 @@ namespace Mist {
|
|||
metaPages[value].master = true;
|
||||
metaPages.erase(value);
|
||||
|
||||
int finalMap = (trackMeta.tracks.find(value)->second.type == "video" ? 1 : 2);
|
||||
int finalMap = 3;
|
||||
if (trackMeta.tracks.find(value)->second.type == "video"){finalMap = 1;}
|
||||
if (trackMeta.tracks.find(value)->second.type == "audio"){finalMap = 2;}
|
||||
//Resume either if we have more than 1 keyframe on the replacement track (assume it was already pushing before the track "dissapeared")
|
||||
//or if the firstms of the replacement track is later than the lastms on the existing track
|
||||
if (!myMeta.tracks.count(finalMap) || trackMeta.tracks.find(value)->second.keys.size() > 1 || trackMeta.tracks.find(value)->second.firstms >= myMeta.tracks[finalMap].lastms) {
|
||||
|
|
Loading…
Add table
Reference in a new issue