From: Stefan Huber Date: Thu, 15 Nov 2012 10:10:23 +0000 (+0100) Subject: mp-play: check if bs2b is available X-Git-Url: https://git.sthu.org/?a=commitdiff_plain;h=b75b12318a27357fba15b2e3d54e260f1a1f7f0c;p=shutils.git mp-play: check if bs2b is available --- diff --git a/mp-play b/mp-play index 7adc101..cd40b2d 100755 --- a/mp-play +++ b/mp-play @@ -7,7 +7,9 @@ if [ -x "/usr/bin/mplayer2" ]; then player="/usr/bin/mplayer2" fi -playeropts="-af-add bs2b" +playeropts="" +$player -af help | grep -q bs2b && playeropts="${playeropts} -af-add bs2b" + optRandom="" optRepeat=""