Add a missing check for if the video has an audio track

This commit is contained in:
Thomas Goyne 2014-05-23 12:40:06 -07:00
parent 99b46f6a14
commit 55865d131a
1 changed files with 1 additions and 1 deletions

View File

@ -201,7 +201,7 @@ void Project::LoadUnloadFiles() {
else
DoLoadAudio(audio, false);
}
else if (loaded_video && OPT_GET("Video/Open Audio")->GetBool() && audio_file != video_file)
else if (loaded_video && OPT_GET("Video/Open Audio")->GetBool() && audio_file != video_file && video_provider->HasAudio())
DoLoadAudio(video, true);
}