splashscreen - only add --mmal-layer for videocore

This commit is contained in:
Jools Wills 2024-01-28 15:08:44 +00:00
parent 19865c363d
commit 2518994e6c
2 changed files with 5 additions and 1 deletions

View file

@ -63,6 +63,9 @@ _EOF_
iniSet "DATADIR" "$datadir"
iniSet "REGEX_IMAGE" "$(_image_exts_splashscreen)"
iniSet "REGEX_VIDEO" "$(_video_exts_splashscreen)"
if isPlatform "videocore"; then
iniSet "VLC_OPTS" "--mmal-layer 10001"
fi
if [[ ! -f "$configdir/all/$md_id.cfg" ]]; then
iniConfig "=" '"' "$configdir/all/$md_id.cfg"

View file

@ -4,6 +4,7 @@ ROOTDIR=""
DATADIR=""
REGEX_VIDEO=""
REGEX_IMAGE=""
VLC_OPTS=""
# Load user settings
. /opt/retropie/configs/all/splashscreen.cfg
@ -12,7 +13,7 @@ do_start () {
local config="/etc/splashscreen.list"
local line
local re="$REGEX_VIDEO\|$REGEX_IMAGE"
local vlc="vlc --intf dummy --quiet --no-video-title-show --play-and-exit --mmal-layer 10001"
local vlc="vlc --intf dummy --quiet --no-video-title-show --play-and-exit "
case "$RANDOMIZE" in
retropie)
line="$(find "$ROOTDIR/supplementary/splashscreen" -type f | grep "$re" | shuf -n1)"