From 14420102e443ad2090a3b7ce7c36a068619685cd Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Sun, 23 Jan 2011 07:47:52 +0000 Subject: [PATCH] Update the frame number display and visual typesetting tool when opening a new video Originally committed to SVN as r5264. --- aegisub/src/video_display.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/aegisub/src/video_display.cpp b/aegisub/src/video_display.cpp index c3bdcd081..a982a0c52 100644 --- a/aegisub/src/video_display.cpp +++ b/aegisub/src/video_display.cpp @@ -265,12 +265,11 @@ void VideoDisplay::UploadFrameData(FrameReadyEvent &evt) { void VideoDisplay::OnVideoOpen() { if (!con->videoController->IsLoaded()) return; UpdateSize(); - currentFrame = 0; - con->videoController->GetFrameAsync(0); - UpdateRelativeTimes(0); if (!tool.get()) tool.reset(new VisualToolCross(this, con, video, toolBar)); + SetFrame(0); tool->Refresh(); } + void VideoDisplay::OnCommit(int type) { if (type == AssFile::COMMIT_FULL || type == AssFile::COMMIT_UNDO) con->videoController->GetScriptSize(scriptW, scriptH);