summaryrefslogtreecommitdiffstats
path: root/TOOLS
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-03-25 23:59:54 +0100
committerwm4 <wm4@nowhere>2013-03-26 01:29:53 +0100
commit90118a38108406c84597e65d50148fdebd5df9be (patch)
tree7d083452c7e7bc6ef76477d50a7221ba5141ba13 /TOOLS
parent790df511c4aad28c64998783b5b599e88177356e (diff)
downloadmpv-90118a38108406c84597e65d50148fdebd5df9be.tar.bz2
mpv-90118a38108406c84597e65d50148fdebd5df9be.tar.xz
mpv_identify: allow specifying mpv binary via MPV
Useful for testing.
Diffstat (limited to 'TOOLS')
-rwxr-xr-xTOOLS/mpv_identify.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/TOOLS/mpv_identify.sh b/TOOLS/mpv_identify.sh
index 34c67a18a1..7fb5f27da2 100755
--- a/TOOLS/mpv_identify.sh
+++ b/TOOLS/mpv_identify.sh
@@ -45,6 +45,10 @@ if [ $# -lt 2 ]; then
exit 1
fi
+if [ -z "$MPV" ]; then
+ MPV="mpv"
+fi
+
__midentify__LF="
"
@@ -100,7 +104,7 @@ for __midentify__key in $__midentify__allprops; do
eval unset $__midentify__nextprefix$__midentify__key
done
-__midentify__output=`mpv --playing-msg="$__midentify__propstr" --vo=null --ao=null --frames=1 "$@"`
+__midentify__output=`$MPV --playing-msg="$__midentify__propstr" --vo=null --ao=null --frames=1 "$@"`
__midentify__fileindex=0
__midentify__prefix=
while :; do