From 0fe65b45f2144dccc9bdaf70dff58b1aaf78fd4e Mon Sep 17 00:00:00 2001 From: skidau Date: Thu, 21 May 2015 11:29:31 +0000 Subject: [PATCH] Fixed the crash on boot that would occur with FFMPEG enabled. git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@1462 a31d4220-a93d-0410-bf67-fe4944624d44 --- src/wx/sys.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/wx/sys.cpp b/src/wx/sys.cpp index 6efda6ce..d5a559b0 100644 --- a/src/wx/sys.cpp +++ b/src/wx/sys.cpp @@ -1159,10 +1159,14 @@ void systemScreenMessage(const char* msg) bool systemCanChangeSoundQuality() { #ifndef NO_FFMPEG - GameArea* panel = wxGetApp().frame->GetPanel(); - if (panel) - return !panel->IsRecording(); + if (emulating) + { + GameArea* panel = wxGetApp().frame->GetPanel(); + + if (panel) + return !panel->IsRecording(); + } #endif return wxGetApp().IsMainLoopRunning();