Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix frame skipping on non-win32 systems missing libav
Fixes issue 4097.
  • Loading branch information
plbl4ster authored and delroth committed Aug 28, 2012
1 parent 6773261 commit 94e49c5
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Source/Plugins/Plugin_VideoOGL/Src/Render.cpp
Expand Up @@ -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;
}
Expand Down

0 comments on commit 94e49c5

Please sign in to comment.