forked from mia/Aegisub
Fix loading linked audio when automatic opening of audio from video is enabled
Originally committed to SVN as r6945.
This commit is contained in:
parent
7bd7ef7cd6
commit
269a206053
1 changed files with 4 additions and 0 deletions
|
@ -683,6 +683,9 @@ void FrameMain::OnSubtitlesOpen() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (audioChanged)
|
||||||
|
blockAudioLoad = true;
|
||||||
|
|
||||||
// Video
|
// Video
|
||||||
if (videoChanged) {
|
if (videoChanged) {
|
||||||
context->videoController->SetVideo(curSubsVideo);
|
context->videoController->SetVideo(curSubsVideo);
|
||||||
|
@ -712,6 +715,7 @@ void FrameMain::OnSubtitlesOpen() {
|
||||||
|
|
||||||
// Audio
|
// Audio
|
||||||
if (audioChanged) {
|
if (audioChanged) {
|
||||||
|
blockAudioLoad = false;
|
||||||
try {
|
try {
|
||||||
if (!curSubsAudio)
|
if (!curSubsAudio)
|
||||||
context->audioController->CloseAudio();
|
context->audioController->CloseAudio();
|
||||||
|
|
Loading…
Reference in a new issue