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:
parent
a62d5bbfe4
commit
e82c4afd50
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user