1
mirror of https://github.com/mpv-player/mpv synced 2024-09-09 01:16:56 +02:00

mpv_identify: allow specifying mpv binary via MPV

Useful for testing.
This commit is contained in:
wm4 2013-03-25 23:59:54 +01:00
parent 790df511c4
commit 90118a3810

View File

@ -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