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