Fixed the crash on boot that would occur with FFMPEG enabled.
This commit is contained in:
parent
d83062e64e
commit
9340762719
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue