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()
|
bool systemCanChangeSoundQuality()
|
||||||
{
|
{
|
||||||
#ifndef NO_FFMPEG
|
#ifndef NO_FFMPEG
|
||||||
|
|
||||||
|
if (emulating)
|
||||||
|
{
|
||||||
GameArea* panel = wxGetApp().frame->GetPanel();
|
GameArea* panel = wxGetApp().frame->GetPanel();
|
||||||
|
|
||||||
if (panel)
|
if (panel)
|
||||||
return !panel->IsRecording();
|
return !panel->IsRecording();
|
||||||
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
return wxGetApp().IsMainLoopRunning();
|
return wxGetApp().IsMainLoopRunning();
|
||||||
|
|
Loading…
Reference in New Issue