Ignore invalid frame images in on-demand mode.

This commit is contained in:
Bartosz Taudul 2019-06-09 15:37:49 +02:00
parent 4c2ff80ac8
commit d6d7b82529

View File

@ -2973,7 +2973,12 @@ void Worker::ProcessFrameImage( const QueueFrameImage& ev )
auto& frames = m_data.framesBase->frames; auto& frames = m_data.framesBase->frames;
const auto fidx = (int64_t)frames.size() - 1 - ev.offset; const auto fidx = (int64_t)frames.size() - 1 - ev.offset;
if( fidx <= 0 ) if( m_onDemand && fidx <= 1 )
{
m_pendingFrameImageData.erase( it );
return;
}
else if( fidx <= 0 )
{ {
FrameImageIndexFailure(); FrameImageIndexFailure();
return; return;