AudioSDL -> SDL2: Fix a crash from calling a SDL1 function instead of

SDL2's.
This commit is contained in:
Shmuel H
2017-12-21 07:27:37 +02:00
committed by Lukas W
parent ec28a65c89
commit ff8de2d7eb

View File

@@ -159,7 +159,11 @@ void AudioSdl::startProcessing()
void AudioSdl::stopProcessing()
{
#ifdef LMMS_HAVE_SDL2
if( SDL_GetAudioDeviceStatus(m_outputDevice) == SDL_AUDIO_PLAYING )
#else
if( SDL_GetAudioStatus() == SDL_AUDIO_PLAYING )
#endif
{
#ifdef LMMS_HAVE_SDL2
SDL_LockAudioDevice (m_inputDevice);