From ffab39b21feea2ffee10aa0267afe6301aa2ba28 Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Fri, 21 Sep 2012 17:58:22 -0700 Subject: [PATCH] Don't automatically load audio from video if audio from that file is already open --- aegisub/src/frame_main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aegisub/src/frame_main.cpp b/aegisub/src/frame_main.cpp index 270167f45..282950431 100644 --- a/aegisub/src/frame_main.cpp +++ b/aegisub/src/frame_main.cpp @@ -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()); }