From a29f4556255807e47b470e661444c59eaa1a0817 Mon Sep 17 00:00:00 2001 From: Laserlicht <13953785+Laserlicht@users.noreply.github.com> Date: Wed, 11 Dec 2024 21:31:00 +0100 Subject: [PATCH] fix video crash with subtitles --- client/widgets/VideoWidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/widgets/VideoWidget.cpp b/client/widgets/VideoWidget.cpp index cdde58cde..f8b69fa2c 100644 --- a/client/widgets/VideoWidget.cpp +++ b/client/widgets/VideoWidget.cpp @@ -173,7 +173,7 @@ void VideoWidgetBase::tick(uint32_t msPassed) { videoInstance->tick(msPassed); - if(subTitle) + if(!videoInstance->videoEnded() && subTitle) subTitle->setText(getSubTitleLine(videoInstance->timeStamp())); if(videoInstance->videoEnded())