1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-26 09:35:28 +00:00

close SDL when closing the video, not after the video loop is finished

This commit is contained in:
Chris Robinson 2012-12-12 00:36:52 -08:00
parent a62d5bbfe4
commit e82c4afd50

View File

@ -565,8 +565,6 @@ namespace MWRender
av_free_packet(packet);
}
SDL_CloseAudio();
av_free(pFrame);
avpicture_free((AVPicture *)is->rgbaFrame);
@ -861,6 +859,8 @@ namespace MWRender
delete mState;
mState = NULL;
SDL_CloseAudio();
mRectangle->setVisible (false);
MWBase::Environment::get().getWindowManager ()->removeGuiMode (MWGui::GM_Video);