From 59494b0a9bbb808df28b14d091b1e6e0194ab2f4 Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Thu, 15 Sep 2022 17:25:27 +0200 Subject: [PATCH] Fixed an issue where videos without any static images would sometimes have a delayed start. --- es-core/src/components/VideoComponent.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/es-core/src/components/VideoComponent.cpp b/es-core/src/components/VideoComponent.cpp index 9d4fa6620..942354c3e 100644 --- a/es-core/src/components/VideoComponent.cpp +++ b/es-core/src/components/VideoComponent.cpp @@ -287,7 +287,7 @@ void VideoComponent::update(int deltaTime) if (mWindow->getGameLaunchedState()) return; - if (!mIsPlaying && mConfig.startDelay == 0) { + if (!mIsPlaying && (mConfig.startDelay == 0 || mStaticImagePath == "")) { startVideoStream(); } else if (mStartTime == 0 || SDL_GetTicks() > mStartTime) {