TOOLS/mpv_identify.sh: simplify $MPV handling

This commit is contained in:
shdown 2014-08-30 20:32:50 +04:00 committed by wm4
parent 4a976c469c
commit b8f2f0d69e
1 changed files with 2 additions and 6 deletions

View File

@ -41,10 +41,6 @@ __midentify__main() {
return 1
fi
if [ -z "$MPV" ]; then
local MPV="mpv"
fi
local LF="
"
@ -101,7 +97,7 @@ __midentify__main() {
unset "$nextprefix$key"
done
local output="$($MPV --term-playing-msg="$propstr" --vo=null --ao=null \
local output="$(${MPV:-mpv} --term-playing-msg="$propstr" --vo=null --ao=null \
--frames=1 --quiet --no-cache --no-config -- "$@")"
local fileindex=0
local prefix=