From 8c24d0a3b71aa952579e71f3673f7a2367036abb Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Thu, 18 Aug 2022 23:02:00 +0200 Subject: [PATCH] Fixed an issue where videos with no path set could sometimes get attempted to play. --- es-core/src/components/VideoComponent.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/es-core/src/components/VideoComponent.cpp b/es-core/src/components/VideoComponent.cpp index bb64930b9..b0ebf299f 100644 --- a/es-core/src/components/VideoComponent.cpp +++ b/es-core/src/components/VideoComponent.cpp @@ -233,6 +233,9 @@ void VideoComponent::update(int deltaTime) return; } + if (mVideoPath == "") + return; + // Hack to prevent the video from starting to play if the static image was shown when paused. if (mConfig.showSnapshotDelay && mPaused) mStartTime = SDL_GetTicks() + mConfig.startDelay;