From 94e49c50440fa804f39b866a8923304942cef323 Mon Sep 17 00:00:00 2001 From: plbl4ster Date: Tue, 28 Aug 2012 12:27:58 +0200 Subject: [PATCH] Fix frame skipping on non-win32 systems missing libav Fixes issue 4097. --- Source/Plugins/Plugin_VideoOGL/Src/Render.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Source/Plugins/Plugin_VideoOGL/Src/Render.cpp b/Source/Plugins/Plugin_VideoOGL/Src/Render.cpp index f10634ba18..19e4002b7e 100644 --- a/Source/Plugins/Plugin_VideoOGL/Src/Render.cpp +++ b/Source/Plugins/Plugin_VideoOGL/Src/Render.cpp @@ -993,11 +993,13 @@ void Renderer::Swap(u32 xfbAddr, FieldType field, u32 fbWidth, u32 fbHeight,cons if (g_bSkipCurrentFrame || (!XFBWrited && (!g_ActiveConfig.bUseXFB || !g_ActiveConfig.bUseRealXFB)) || !fbWidth || !fbHeight) { if (g_ActiveConfig.bDumpFrames && frame_data) - #ifdef _WIN32 + { +#ifdef _WIN32 AVIDump::AddFrame(frame_data); - #elif defined HAVE_LIBAV +#elif defined HAVE_LIBAV AVIDump::AddFrame((u8*)frame_data, w, h); - #endif +#endif + } Core::Callback_VideoCopiedToXFB(false); return; }