Fixed an issue where videos without any static images would sometimes have a delayed start.

This commit is contained in:
Leon Styhre 2022-09-15 17:25:27 +02:00
parent 78cdc49200
commit 59494b0a9b

View file

@ -287,7 +287,7 @@ void VideoComponent::update(int deltaTime)
if (mWindow->getGameLaunchedState()) if (mWindow->getGameLaunchedState())
return; return;
if (!mIsPlaying && mConfig.startDelay == 0) { if (!mIsPlaying && (mConfig.startDelay == 0 || mStaticImagePath == "")) {
startVideoStream(); startVideoStream();
} }
else if (mStartTime == 0 || SDL_GetTicks() > mStartTime) { else if (mStartTime == 0 || SDL_GetTicks() > mStartTime) {