mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-28 15:41:13 -04: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);
|
av_free_packet(packet);
|
||||||
}
|
}
|
||||||
|
|
||||||
SDL_CloseAudio();
|
|
||||||
|
|
||||||
av_free(pFrame);
|
av_free(pFrame);
|
||||||
|
|
||||||
avpicture_free((AVPicture *)is->rgbaFrame);
|
avpicture_free((AVPicture *)is->rgbaFrame);
|
||||||
@ -861,6 +859,8 @@ namespace MWRender
|
|||||||
delete mState;
|
delete mState;
|
||||||
mState = NULL;
|
mState = NULL;
|
||||||
|
|
||||||
|
SDL_CloseAudio();
|
||||||
|
|
||||||
mRectangle->setVisible (false);
|
mRectangle->setVisible (false);
|
||||||
MWBase::Environment::get().getWindowManager ()->removeGuiMode (MWGui::GM_Video);
|
MWBase::Environment::get().getWindowManager ()->removeGuiMode (MWGui::GM_Video);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user