summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorshdown <shdownnine@gmail.com>2014-08-30 20:32:50 +0400
committerwm4 <wm4@nowhere>2014-08-30 19:23:42 +0200
commitb8f2f0d69eb8b8a404eaffd23cf3aab8560e29ec (patch)
tree2b03de64ef678cff385d6bbd96e1b4dbc96ca20c
parent4a976c469ca24f5a2c1a6b2122168c81a9059235 (diff)
downloadmpv-b8f2f0d69eb8b8a404eaffd23cf3aab8560e29ec.tar.bz2
mpv-b8f2f0d69eb8b8a404eaffd23cf3aab8560e29ec.tar.xz
TOOLS/mpv_identify.sh: simplify $MPV handling
-rw-r--r--TOOLS/mpv_identify.sh8
1 files changed, 2 insertions, 6 deletions
diff --git a/TOOLS/mpv_identify.sh b/TOOLS/mpv_identify.sh
index 3ff7b1d46c..4d5a1c7798 100644
--- a/TOOLS/mpv_identify.sh
+++ b/TOOLS/mpv_identify.sh
@@ -41,10 +41,6 @@ __midentify__main() {
return 1
fi
- if [ -z "$MPV" ]; then
- local MPV="mpv"
- fi
-
local LF="
"
@@ -101,8 +97,8 @@ __midentify__main() {
unset "$nextprefix$key"
done
- local output="$($MPV --term-playing-msg="$propstr" --vo=null --ao=null \
- --frames=1 --quiet --no-cache --no-config -- "$@")"
+ local output="$(${MPV:-mpv} --term-playing-msg="$propstr" --vo=null --ao=null \
+ --frames=1 --quiet --no-cache --no-config -- "$@")"
local fileindex=0
local prefix=
while :; do