From 156ec5cae1a954b9e86d972e209b66e35151be0e Mon Sep 17 00:00:00 2001 From: Anssi Hannula <anssi.hannula@iki.fi> Date: Tue, 2 Nov 2010 03:02:20 +0200 Subject: [PATCH] added: workaround for crash with nonpulse+nvidia260 --- tools/Linux/xbmc.sh.in | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/tools/Linux/xbmc.sh.in b/tools/Linux/xbmc.sh.in index 25c62a8..62fb5f5 100644 --- a/tools/Linux/xbmc.sh.in +++ b/tools/Linux/xbmc.sh.in @@ -109,6 +109,11 @@ if [ $RET -ne 0 ]; then exit $RET fi +# Workaround http://www.nvnews.net/vbulletin/showthread.php?t=156665 +if [ "$(readlink -f /etc/alternatives/soundprofile)" = "/etc/sound/profiles/alsa" ] && ldd "$LIBDIR/xbmc/xbmc.bin" | grep -q -E 'nvidia-glcore\.so\.260\.19\.(04|06|12)' && [ -z "$SDL_AUDIODRIVER" ]; then + export SDL_AUDIODRIVER="alsa" +fi + if which gdb >/dev/null 2>&1; then # Output warning in case ulimit is unsupported by shell eval ulimit -c unlimited -- 1.7.3