add 6 s delay to fix PA not init problems

This commit is contained in:
graysky 2014-12-23 21:09:57 -05:00
parent 5409acb198
commit 744c5cfb38

3
common/kodi-standalone2 Executable file → Normal file
View File

@ -27,7 +27,10 @@ APP="${bindir}/${bin_name} --standalone $@"
PULSE_START="$(which start-pulseaudio-x11)" PULSE_START="$(which start-pulseaudio-x11)"
if [ -n "$PULSE_START" ]; then if [ -n "$PULSE_START" ]; then
# delay needed to allow PA to initialize for xbmc
# to detect all audio sources
$PULSE_START $PULSE_START
sleep 6s
else else
PULSE_SESSION="$(which pulse-session)" PULSE_SESSION="$(which pulse-session)"
if [ -n "$PULSE_SESSION" ]; then if [ -n "$PULSE_SESSION" ]; then