Fixed an issue where videos with no path set could sometimes get attempted to play.

This commit is contained in:
Leon Styhre 2022-08-18 23:02:00 +02:00
parent de5a642cf6
commit 8c24d0a3b7

View file

@ -233,6 +233,9 @@ void VideoComponent::update(int deltaTime)
return; return;
} }
if (mVideoPath == "")
return;
// Hack to prevent the video from starting to play if the static image was shown when paused. // Hack to prevent the video from starting to play if the static image was shown when paused.
if (mConfig.showSnapshotDelay && mPaused) if (mConfig.showSnapshotDelay && mPaused)
mStartTime = SDL_GetTicks() + mConfig.startDelay; mStartTime = SDL_GetTicks() + mConfig.startDelay;