forked from mia/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
1 changed files with 4 additions and 0 deletions
|
@ -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 a new issue