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();
|
subs.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!video.empty()) {
|
if (!video.empty() && DoLoadVideo(video)) {
|
||||||
DoLoadVideo(video);
|
|
||||||
|
|
||||||
double dar = video_provider->GetDAR();
|
double dar = video_provider->GetDAR();
|
||||||
if (dar > 0)
|
if (dar > 0)
|
||||||
context->videoController->SetAspectRatio(dar);
|
context->videoController->SetAspectRatio(dar);
|
||||||
|
|
Loading…
Reference in New Issue