mirror of https://github.com/odrling/Aegisub
Stop video playback when seeking due to switching active lines
This commit is contained in:
parent
d73790805a
commit
b370e1af53
|
@ -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() {
|
||||||
|
|
Loading…
Reference in New Issue