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

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