mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-22 22:13:35 +02:00
fix video crash with subtitles
This commit is contained in:
parent
3d7178dcef
commit
a29f455625
@ -173,7 +173,7 @@ void VideoWidgetBase::tick(uint32_t msPassed)
|
|||||||
{
|
{
|
||||||
videoInstance->tick(msPassed);
|
videoInstance->tick(msPassed);
|
||||||
|
|
||||||
if(subTitle)
|
if(!videoInstance->videoEnded() && subTitle)
|
||||||
subTitle->setText(getSubTitleLine(videoInstance->timeStamp()));
|
subTitle->setText(getSubTitleLine(videoInstance->timeStamp()));
|
||||||
|
|
||||||
if(videoInstance->videoEnded())
|
if(videoInstance->videoEnded())
|
||||||
|
Loading…
Reference in New Issue
Block a user