Move audio renderer destruction back off the main thread now that we're using atexit(SDL_Quit)

This commit is contained in:
Cameron Gutman 2018-09-30 18:09:12 -07:00
commit c239d0814b
3 changed files with 7 additions and 29 deletions

View file

@ -288,8 +288,7 @@ Session::Session(NvComputer* computer, NvApp& app, StreamingPreferences *prefere
m_DisplayOriginY(0),
m_PendingWindowedTransition(false),
m_OpusDecoder(nullptr),
m_AudioRenderer(nullptr),
m_AudioRendererLock(0)
m_AudioRenderer(nullptr)
{
}
@ -1143,9 +1142,6 @@ DispatchDeferredCleanup:
m_VideoDecoder = nullptr;
SDL_AtomicUnlock(&m_DecoderLock);
// Destroy the audio renderer which must also be done on the main thread
cleanupAudioRendererOnMainThread();
SDL_DestroyWindow(m_Window);
if (iconSurface != nullptr) {
SDL_FreeSurface(iconSurface);