forked from mia/Aegisub
Fix crash when loading video from drag&drop is cancelled
This commit is contained in:
parent
a38793497f
commit
5989226422
1 changed files with 1 additions and 3 deletions
|
@ -505,9 +505,7 @@ void Project::LoadList(std::vector<agi::fs::path> const& files) {
|
|||
subs.clear();
|
||||
}
|
||||
|
||||
if (!video.empty()) {
|
||||
DoLoadVideo(video);
|
||||
|
||||
if (!video.empty() && DoLoadVideo(video)) {
|
||||
double dar = video_provider->GetDAR();
|
||||
if (dar > 0)
|
||||
context->videoController->SetAspectRatio(dar);
|
||||
|
|
Loading…
Reference in a new issue