Correct closing audio in FrameMain::OnSubtitlesOpen

Originally committed to SVN as r5661.
This commit is contained in:
Thomas Goyne 2011-09-28 19:51:53 +00:00
parent 77d02d269d
commit d3ea9236cf
1 changed files with 4 additions and 1 deletions

View File

@ -719,6 +719,9 @@ void FrameMain::OnSubtitlesOpen() {
// Audio // Audio
if (curSubsAudio != context->audioController->GetAudioURL()) { if (curSubsAudio != context->audioController->GetAudioURL()) {
if (!curSubsAudio)
context->audioController->CloseAudio();
else
context->audioController->OpenAudio(curSubsAudio); context->audioController->OpenAudio(curSubsAudio);
} }
} }