From 4ab296d8bbd073a9557992950ca066cd1507d970 Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Wed, 24 Mar 2021 20:15:17 +0100 Subject: [PATCH] Improved the video player pause function while running in background. --- es-core/src/components/VideoComponent.cpp | 2 +- es-core/src/components/VideoVlcComponent.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/es-core/src/components/VideoComponent.cpp b/es-core/src/components/VideoComponent.cpp index f448eb5c1..27c2214e2 100644 --- a/es-core/src/components/VideoComponent.cpp +++ b/es-core/src/components/VideoComponent.cpp @@ -330,7 +330,7 @@ void VideoComponent::startVideoWithDelay() void VideoComponent::handleStartDelay() { - if (mBlockPlayer) + if (mBlockPlayer || mGameLaunched) return; // Only play if any delay has timed out. diff --git a/es-core/src/components/VideoVlcComponent.cpp b/es-core/src/components/VideoVlcComponent.cpp index 5df98bc53..3b81abd7d 100644 --- a/es-core/src/components/VideoVlcComponent.cpp +++ b/es-core/src/components/VideoVlcComponent.cpp @@ -321,7 +321,7 @@ void VideoVlcComponent::setAudioVolume() void VideoVlcComponent::startVideo() { - if (!mIsPlaying) { + if (!mIsPlaying && !mGameLaunched) { mVideoWidth = 0; mVideoHeight = 0;