Fix frame dumps on file close in certain situations

This commit is contained in:
Chris Burgener
2016-10-04 09:12:19 -04:00
parent ea33405feb
commit 43c48a6f48
4 changed files with 8 additions and 8 deletions

View File

@ -923,8 +923,8 @@ void Renderer::SwapImpl(u32 xfbAddr, u32 fbWidth, u32 fbStride, u32 fbHeight,
{
if (bLastFrameDumped && bAVIDumping)
{
std::vector<u8>().swap(frame_data);
AVIDump::Stop();
std::vector<u8>().swap(frame_data);
bAVIDumping = false;
OSD::AddMessage("Stop dumping frames to AVI", 2000);
}