mirror of https://github.com/odrling/Aegisub
Add a missing check for if the video has an audio track
This commit is contained in:
parent
99b46f6a14
commit
55865d131a
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue