Stop video playback when seeking due to switching active lines

This commit is contained in:
Thomas Goyne 2014-05-24 06:50:54 -07:00
parent d73790805a
commit b370e1af53
1 changed files with 3 additions and 1 deletions

View File

@ -84,8 +84,10 @@ void VideoController::OnSubtitlesCommit(int type, std::set<const AssDialogue *>
} }
void VideoController::OnActiveLineChanged(AssDialogue *line) { void VideoController::OnActiveLineChanged(AssDialogue *line) {
if (line && provider && OPT_GET("Video/Subtitle Sync")->GetBool()) if (line && provider && OPT_GET("Video/Subtitle Sync")->GetBool()) {
Stop();
JumpToTime(line->Start); JumpToTime(line->Start);
}
} }
void VideoController::RequestFrame() { void VideoController::RequestFrame() {