From b75b12318a27357fba15b2e3d54e260f1a1f7f0c Mon Sep 17 00:00:00 2001 From: Stefan Huber Date: Thu, 15 Nov 2012 11:10:23 +0100 Subject: [PATCH] mp-play: check if bs2b is available --- mp-play | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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="" -- 2.39.5