Use proper index.

This commit is contained in:
Bartosz Taudul 2019-06-06 22:15:30 +02:00
parent beea31edd0
commit cd2f572a2f

View File

@ -2888,9 +2888,9 @@ void Worker::ProcessFrameImage( const QueueFrameImage& ev )
fi->ptr = (const char*)it->second;
fi->w = ev.w;
fi->h = ev.h;
m_data.frameImage.push_back( fi );
const auto idx = m_data.frameImage.size();
m_data.frameImage.push_back( fi );
m_data.framesBase->frames.back().frameImage = idx;
m_pendingFrameImageData.erase( it );