Workaround for SDL race condition (#5815)
This commit is contained in:
committed by
GitHub
parent
8655d50bb2
commit
67a5da8c89
@@ -99,6 +99,9 @@ AudioSdl::AudioSdl( bool & _success_ful, Mixer* _mixer ) :
|
||||
_success_ful = true;
|
||||
|
||||
#ifdef LMMS_HAVE_SDL2
|
||||
// Workaround for a race condition that causes SDL to segfault
|
||||
SDL_Delay(50);
|
||||
|
||||
m_inputAudioHandle = m_audioHandle;
|
||||
m_inputAudioHandle.callback = sdlInputAudioCallback;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user