mirror of https://github.com/odrling/Aegisub
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:
parent
f774f21903
commit
fc96f1bd28
|
@ -660,10 +660,13 @@ void FrameMain::OnSubtitlesOpen() {
|
|||
|
||||
// Audio
|
||||
if (curSubsAudio != context->audioController->GetAudioURL()) {
|
||||
if (!curSubsAudio)
|
||||
context->audioController->CloseAudio();
|
||||
else
|
||||
context->audioController->OpenAudio(curSubsAudio);
|
||||
try {
|
||||
if (!curSubsAudio)
|
||||
context->audioController->CloseAudio();
|
||||
else
|
||||
context->audioController->OpenAudio(curSubsAudio);
|
||||
}
|
||||
catch (agi::UserCancelException const&) { }
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue