mirror of https://github.com/odrling/Aegisub
Fix crash when loading video from drag&drop is cancelled
This commit is contained in:
parent
a38793497f
commit
5989226422
|
@ -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 New Issue