mirror of https://github.com/odrling/Aegisub
Fully initialize the video when it's opened via drag-and-drop
This commit is contained in:
parent
4da1443194
commit
cca97a58f6
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue