Fully initialize the video when it's opened via drag-and-drop
This commit is contained in:
parent
4da1443194
commit
cca97a58f6
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue