Videos now always start to play immediately if there is no static image.

This commit is contained in:
Leon Styhre 2020-10-20 21:24:29 +02:00
parent 4831279543
commit 3e8a5391e1
2 changed files with 8 additions and 4 deletions

View file

@ -634,7 +634,7 @@ Activating or deactivating the built-in help systems that provides contextual in
**Play videos immediately (override theme)**
Some themes (including rbsimple-DE) display the game images briefly before playing the game videos. This setting forces the videos to be played immediately, regardless of the configuration in the theme.
Some themes (including rbsimple-DE) display the game images briefly before playing the game videos. This setting forces the videos to be played immediately, regardless of the configuration in the theme. Note though that if there is a video available for a game, but no images, the video will always start to play immediately no matter the theme configuration or whether this settings has been enabled or not.
**Show start menu in kid mode**

View file

@ -204,9 +204,13 @@ void VideoComponent::handleStartDelay()
// If the setting to override the theme-supplied video delay setting has been enabled,
// then play the video immediately.
if (!Settings::getInstance()->getBool("PlayVideosImmediately")) {
if (mStartTime > SDL_GetTicks()) {
// Timeout not yet completed.
return;
// If there is a video file available but no static image, then start playing the
// video immediately regardless of theme configuration or settings.
if (mStaticImagePath != "") {
if (mStartTime > SDL_GetTicks()) {
// Timeout not yet completed.
return;
}
}
}
// Completed.