Fixed the crash on boot that would occur with FFMPEG enabled.

This commit is contained in:
skidau 2015-05-21 11:29:31 +00:00
parent d83062e64e
commit 9340762719
1 changed files with 7 additions and 3 deletions

View File

@ -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();