mirror of https://github.com/odrling/Aegisub
Fix loading linked audio when automatic opening of audio from video is enabled
Originally committed to SVN as r6945.
This commit is contained in:
parent
7bd7ef7cd6
commit
269a206053
|
@ -683,6 +683,9 @@ void FrameMain::OnSubtitlesOpen() {
|
|||
}
|
||||
}
|
||||
|
||||
if (audioChanged)
|
||||
blockAudioLoad = true;
|
||||
|
||||
// Video
|
||||
if (videoChanged) {
|
||||
context->videoController->SetVideo(curSubsVideo);
|
||||
|
@ -712,6 +715,7 @@ void FrameMain::OnSubtitlesOpen() {
|
|||
|
||||
// Audio
|
||||
if (audioChanged) {
|
||||
blockAudioLoad = false;
|
||||
try {
|
||||
if (!curSubsAudio)
|
||||
context->audioController->CloseAudio();
|
||||
|
|
Loading…
Reference in New Issue