Fully initialize the video when it's opened via drag-and-drop

This commit is contained in:
Thomas Goyne 2014-05-26 08:58:43 -07:00
parent 4da1443194
commit cca97a58f6
1 changed files with 7 additions and 0 deletions

View File

@ -480,6 +480,13 @@ void Project::LoadList(std::vector<agi::fs::path> 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