Skip to content

Commit

Permalink
Workaround for SDL race condition (LMMS#5815)
Browse files Browse the repository at this point in the history
  • Loading branch information
M374LX authored and devnexen committed Apr 10, 2021
1 parent a6ca89f commit b3ea0f2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/core/audio/AudioSdl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit b3ea0f2

Please sign in to comment.