From b370e1af53002b1572864b37814b171d0c864775 Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Sat, 24 May 2014 06:50:54 -0700 Subject: [PATCH] Stop video playback when seeking due to switching active lines --- src/video_controller.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/video_controller.cpp b/src/video_controller.cpp index 2db556697..dc25101f4 100644 --- a/src/video_controller.cpp +++ b/src/video_controller.cpp @@ -84,8 +84,10 @@ void VideoController::OnSubtitlesCommit(int type, std::set } 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() {