From cca97a58f67c7c687808eb34985eeaacc65c73e8 Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Mon, 26 May 2014 08:58:43 -0700 Subject: [PATCH] Fully initialize the video when it's opened via drag-and-drop --- src/project.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/project.cpp b/src/project.cpp index b06c896e1..032fab04b 100644 --- a/src/project.cpp +++ b/src/project.cpp @@ -480,6 +480,13 @@ void Project::LoadList(std::vector const& files) { if (!video.empty()) { DoLoadVideo(video); + double dar = video_provider->GetDAR(); + if (dar > 0) + context->videoController->SetAspectRatio(dar); + else + context->videoController->SetAspectRatio(AspectRatio::Default); + context->videoController->JumpToFrame(0); + // We loaded these earlier, but loading video unloaded them // Non-Do version of Load in case they've vanished or changed between // then and now