Don't automatically load audio from video if audio from that file is already open

This commit is contained in:
Thomas Goyne 2012-09-21 17:58:22 -07:00
parent d66c8709ae
commit ffab39b21f

View file

@ -543,7 +543,7 @@ void FrameMain::OnVideoOpen() {
cmd::call("video/detach", context.get());
Thaw();
if (!blockAudioLoad && OPT_GET("Video/Open Audio")->GetBool()) {
if (!blockAudioLoad && OPT_GET("Video/Open Audio")->GetBool() && context->audioController->GetAudioURL() != context->videoController->GetVideoName()) {
try {
context->audioController->OpenAudio(context->videoController->GetVideoName());
}