Swallow cancel exceptions thrown from opening audio from the script so that unrelated things aren't canceled

Originally committed to SVN as r6403.
This commit is contained in:
Thomas Goyne 2012-01-31 04:03:44 +00:00
parent f774f21903
commit fc96f1bd28
1 changed files with 7 additions and 4 deletions

View File

@ -660,11 +660,14 @@ void FrameMain::OnSubtitlesOpen() {
// Audio
if (curSubsAudio != context->audioController->GetAudioURL()) {
try {
if (!curSubsAudio)
context->audioController->CloseAudio();
else
context->audioController->OpenAudio(curSubsAudio);
}
catch (agi::UserCancelException const&) { }
}
}
// Display