mirror of https://github.com/odrling/Aegisub
Correct closing audio in FrameMain::OnSubtitlesOpen
Originally committed to SVN as r5661.
This commit is contained in:
parent
77d02d269d
commit
d3ea9236cf
|
@ -719,7 +719,10 @@ void FrameMain::OnSubtitlesOpen() {
|
||||||
|
|
||||||
// Audio
|
// Audio
|
||||||
if (curSubsAudio != context->audioController->GetAudioURL()) {
|
if (curSubsAudio != context->audioController->GetAudioURL()) {
|
||||||
context->audioController->OpenAudio(curSubsAudio);
|
if (!curSubsAudio)
|
||||||
|
context->audioController->CloseAudio();
|
||||||
|
else
|
||||||
|
context->audioController->OpenAudio(curSubsAudio);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue