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

View file

@ -84,8 +84,10 @@ void VideoController::OnSubtitlesCommit(int type, std::set<const AssDialogue *>
}
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);
}
}
void VideoController::RequestFrame() {