Fixed an issue where the video player would delay playing even though the showSnapshotDelay property was not set.

This commit is contained in:
Leon Styhre 2022-08-16 23:10:40 +02:00
parent 225a602a74
commit 640793ec0a

View file

@ -273,7 +273,7 @@ void VideoComponent::startVideoPlayer()
if (mIsPlaying)
stopVideoPlayer();
if (mConfig.startDelay != 0 && mStaticImagePath != "") {
if (mConfig.showSnapshotDelay && mConfig.startDelay != 0 && mStaticImagePath != "") {
mStartTime = SDL_GetTicks() + mConfig.startDelay;
setImage(mStaticImagePath);
}