mirror of https://github.com/odrling/Aegisub
Don't automatically load audio from video if audio from that file is already open
This commit is contained in:
parent
d66c8709ae
commit
ffab39b21f
|
@ -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());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue