]> git.sthu.org Git - shutils.git/commitdiff
mp-play: check if bs2b is available
authorStefan Huber <shuber2@gmx.at>
Thu, 15 Nov 2012 10:10:23 +0000 (11:10 +0100)
committerStefan Huber <shuber2@gmx.at>
Thu, 15 Nov 2012 10:10:23 +0000 (11:10 +0100)
mp-play

diff --git a/mp-play b/mp-play
index 7adc101b7a15176ff0d13096444759a694d32131..cd40b2df1c96e37d94b48b7d109d6e6a13a98076 100755 (executable)
--- 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=""