Fix crash when loading video from drag&drop is cancelled

This commit is contained in:
Thomas Goyne 2014-06-29 11:23:37 -07:00
parent a38793497f
commit 5989226422
1 changed files with 1 additions and 3 deletions

View File

@ -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);