Fix loading linked audio when automatic opening of audio from video is enabled

Originally committed to SVN as r6945.
This commit is contained in:
Thomas Goyne 2012-07-24 02:40:29 +00:00
parent 7bd7ef7cd6
commit 269a206053
1 changed files with 4 additions and 0 deletions

View File

@ -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();