mirror of https://github.com/odrling/Aegisub
Rearrange VideoContext::Reset to fix error on shutdown
Originally committed to SVN as r6127.
This commit is contained in:
parent
4133806fe7
commit
29460b97b9
|
@ -108,12 +108,6 @@ VideoContext *VideoContext::Get() {
|
|||
void VideoContext::Reset() {
|
||||
StandardPaths::SetPathValue("?video", "");
|
||||
|
||||
keyFrames.clear();
|
||||
keyFramesFilename.clear();
|
||||
videoFPS = agi::vfr::Framerate();
|
||||
KeyframesOpen(keyFrames);
|
||||
if (!ovrFPS.IsLoaded()) TimecodesOpen(videoFPS);
|
||||
|
||||
// Remove video data
|
||||
Stop();
|
||||
frame_n = 0;
|
||||
|
@ -124,6 +118,12 @@ void VideoContext::Reset() {
|
|||
// Remove provider
|
||||
provider.reset();
|
||||
videoProvider = 0;
|
||||
|
||||
keyFrames.clear();
|
||||
keyFramesFilename.clear();
|
||||
videoFPS = agi::vfr::Framerate();
|
||||
KeyframesOpen(keyFrames);
|
||||
if (!ovrFPS.IsLoaded()) TimecodesOpen(videoFPS);
|
||||
}
|
||||
|
||||
void VideoContext::SetContext(agi::Context *context) {
|
||||
|
|
Loading…
Reference in New Issue