Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #12260 from Pokechu22/multiple-fifo-recording-regr…
…ession

Fix regression when recording multiple fifologs
  • Loading branch information
AdmiralCurtiss committed Nov 1, 2023
2 parents ff009dd + 35831f3 commit 17122f1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Source/Core/Core/FifoPlayer/FifoRecorder.cpp
Expand Up @@ -261,7 +261,11 @@ void FifoRecorder::StartRecording(s32 numFrames, CallbackFunc finishedCb)
OpcodeDecoder::g_record_fifo_data = IsRecording();

if (!OpcodeDecoder::g_record_fifo_data)
{
// Remove this frame end callback when recording finishes
m_end_of_frame_event.reset();
return;
}

if (!was_recording)
{
Expand Down Expand Up @@ -430,9 +434,6 @@ void FifoRecorder::EndFrame(u32 fifoStart, u32 fifoEnd)
m_SkipFutureData = true;
// Signal video backend that it should not call this function when the next frame ends
m_IsRecording = false;

// Remove our frame end callback
m_end_of_frame_event.reset();
}
}

Expand Down

0 comments on commit 17122f1

Please sign in to comment.