mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-01-18 07:05:39 +00:00
Fixed an issue where videos without any static images would sometimes have a delayed start.
This commit is contained in:
parent
78cdc49200
commit
59494b0a9b
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue