Only accept keyframes when we are actually accepted

This commit is contained in:
Erik Zandvliet 2016-05-19 15:16:30 +02:00
parent 2bcdb74917
commit 91c226e4af

View file

@ -495,7 +495,7 @@ namespace Mist {
} }
//Determine if we need to open the next page //Determine if we need to open the next page
int nextPageNum = -1; int nextPageNum = -1;
if (isKeyframe) { if (isKeyframe && trackState[tid] == FILL_ACC) {
//If there is no page, create it //If there is no page, create it
if (!pagesByTrack.count(tid) || pagesByTrack[tid].size() == 0) { if (!pagesByTrack.count(tid) || pagesByTrack[tid].size() == 0) {
nextPageNum = 1; nextPageNum = 1;