mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-26 16:04:34 +00:00
Ignore invalid frame images in on-demand mode.
This commit is contained in:
parent
4c2ff80ac8
commit
d6d7b82529
@ -2973,7 +2973,12 @@ void Worker::ProcessFrameImage( const QueueFrameImage& ev )
|
||||
|
||||
auto& frames = m_data.framesBase->frames;
|
||||
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();
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user