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

View file

@ -480,6 +480,13 @@ void Project::LoadList(std::vector<agi::fs::path> const& files) {
if (!video.empty()) { if (!video.empty()) {
DoLoadVideo(video); 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 // We loaded these earlier, but loading video unloaded them
// Non-Do version of Load in case they've vanished or changed between // Non-Do version of Load in case they've vanished or changed between
// then and now // then and now