Explorar el Código

fix video crash with subtitles

Laserlicht hace 10 meses
padre
commit
a29f455625
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      client/widgets/VideoWidget.cpp

+ 1 - 1
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())