mirror of https://github.com/mpv-player/mpv
TOOLS/mpv_identify.sh: simplify $MPV handling
This commit is contained in:
parent
4a976c469c
commit
b8f2f0d69e
|
@ -41,10 +41,6 @@ __midentify__main() {
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z "$MPV" ]; then
|
|
||||||
local MPV="mpv"
|
|
||||||
fi
|
|
||||||
|
|
||||||
local LF="
|
local LF="
|
||||||
"
|
"
|
||||||
|
|
||||||
|
@ -101,8 +97,8 @@ __midentify__main() {
|
||||||
unset "$nextprefix$key"
|
unset "$nextprefix$key"
|
||||||
done
|
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 -- "$@")"
|
--frames=1 --quiet --no-cache --no-config -- "$@")"
|
||||||
local fileindex=0
|
local fileindex=0
|
||||||
local prefix=
|
local prefix=
|
||||||
while :; do
|
while :; do
|
||||||
|
|
Loading…
Reference in New Issue