diff --git a/Source/Core/VideoCommon/AVIDump.cpp b/Source/Core/VideoCommon/AVIDump.cpp index e4fb4d7302..7b09d10c1e 100644 --- a/Source/Core/VideoCommon/AVIDump.cpp +++ b/Source/Core/VideoCommon/AVIDump.cpp @@ -23,7 +23,9 @@ extern "C" { #include "Core/HW/SystemTimers.h" #include "Core/HW/VideoInterface.h" //for TargetRefreshRate #include "Core/Movie.h" + #include "VideoCommon/AVIDump.h" +#include "VideoCommon/OnScreenDisplay.h" #include "VideoCommon/VideoConfig.h" #if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(55, 28, 1) @@ -68,7 +70,10 @@ bool AVIDump::Start(int w, int h) InitAVCodec(); bool success = CreateFile(); if (!success) + { CloseFile(); + OSD::AddMessage("AVIDump Start failed"); + } return success; } @@ -148,6 +153,9 @@ bool AVIDump::CreateFile() return false; } + OSD::AddMessage(StringFromFormat("Dumping Frames to \"%s\" (%dx%d)", s_format_context->filename, + s_width, s_height)); + return true; } diff --git a/Source/Core/VideoCommon/RenderBase.cpp b/Source/Core/VideoCommon/RenderBase.cpp index 92817805e3..013ee7f07d 100644 --- a/Source/Core/VideoCommon/RenderBase.cpp +++ b/Source/Core/VideoCommon/RenderBase.cpp @@ -660,7 +660,7 @@ bool Renderer::IsFrameDumping() AVIDump::Stop(); std::vector().swap(m_frame_data); m_AVI_dumping = false; - OSD::AddMessage("Stop dumping frames", 2000); + OSD::AddMessage("Stop dumping frames"); } m_last_frame_dumped = false; #endif @@ -698,16 +698,6 @@ void Renderer::DumpFrameData(const u8* data, int w, int h, int stride, u64 ticks if (!m_last_frame_dumped) { m_AVI_dumping = AVIDump::Start(w, h); - if (!m_AVI_dumping) - { - OSD::AddMessage("AVIDump Start failed", 2000); - } - else - { - OSD::AddMessage(StringFromFormat("Dumping Frames to \"%sframedump0.avi\" (%dx%d RGB24)", - File::GetUserPath(D_DUMPFRAMES_IDX).c_str(), w, h), - 2000); - } } if (m_AVI_dumping) {