Make sure the audio dump directory exists when dumping audio. Otherwise a segmentation fault ensues after several panic alerts.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7135 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Glenn Rice
2011-02-11 21:30:53 +00:00
parent 6cbaa360a1
commit cb832f2298
3 changed files with 6 additions and 6 deletions

View File

@ -63,7 +63,9 @@
#ifdef _WIN32
#include "EmuWindow.h"
#endif
#if defined _WIN32 || defined HAVE_LIBAV
#include "AVIDump.h"
#endif
#if defined(HAVE_WX) && HAVE_WX
#include <wx/image.h>
@ -966,7 +968,7 @@ void Renderer::Swap(u32 xfbAddr, FieldType field, u32 fbWidth, u32 fbHeight,cons
if (g_ActiveConfig.bDumpFrames && data)
#ifdef _WIN32
AVIDump::AddFrame((char *) data);
#else
#elif defined HAVE_LIBAV
AVIDump::AddFrame(data);
#endif
Core::Callback_VideoCopiedToXFB(false);
@ -984,7 +986,7 @@ void Renderer::Swap(u32 xfbAddr, FieldType field, u32 fbWidth, u32 fbHeight,cons
if (g_ActiveConfig.bDumpFrames && data)
#ifdef _WIN32
AVIDump::AddFrame((char *) data);
#else
#elif defined HAVE_LIBAV
AVIDump::AddFrame(data);
#endif
Core::Callback_VideoCopiedToXFB(false);