Improved the video player pause function while running in background.

This commit is contained in:
Leon Styhre 2021-03-24 20:15:17 +01:00
parent 083e0a12e9
commit 4ab296d8bb
2 changed files with 2 additions and 2 deletions

View file

@ -330,7 +330,7 @@ void VideoComponent::startVideoWithDelay()
void VideoComponent::handleStartDelay() void VideoComponent::handleStartDelay()
{ {
if (mBlockPlayer) if (mBlockPlayer || mGameLaunched)
return; return;
// Only play if any delay has timed out. // Only play if any delay has timed out.

View file

@ -321,7 +321,7 @@ void VideoVlcComponent::setAudioVolume()
void VideoVlcComponent::startVideo() void VideoVlcComponent::startVideo()
{ {
if (!mIsPlaying) { if (!mIsPlaying && !mGameLaunched) {
mVideoWidth = 0; mVideoWidth = 0;
mVideoHeight = 0; mVideoHeight = 0;