summaryrefslogtreecommitdiffstats
path: root/player
diff options
context:
space:
mode:
authorJulian <MyFakeAcc.4@googlemail.com>2015-10-14 16:53:01 +0900
committerwm4 <wm4@nowhere>2017-10-09 20:40:31 +0200
commit1a1e5b87fb743f24c4299aaed1a8420320b17aaa (patch)
treee85e9799d7e4b4e651e34bea03a32f4fee159a13 /player
parent47016bf45eb82c484a2d672229f5a1aaa94c2248 (diff)
downloadmpv-1a1e5b87fb743f24c4299aaed1a8420320b17aaa.tar.bz2
mpv-1a1e5b87fb743f24c4299aaed1a8420320b17aaa.tar.xz
stats: rename some variables for consistency
Diffstat (limited to 'player')
-rw-r--r--player/lua/stats.lua18
1 files changed, 9 insertions, 9 deletions
diff --git a/player/lua/stats.lua b/player/lua/stats.lua
index 0869ac133b..2848c9caa6 100644
--- a/player/lua/stats.lua
+++ b/player/lua/stats.lua
@@ -36,14 +36,14 @@ local o = {
-- Text formatting
-- With ASS
nl = "\\N",
- prop_indent = "\\h\\h\\h\\h\\h",
- kv_sep = "\\h\\h",
+ indent = "\\h\\h\\h\\h\\h",
+ prefix_sep = "\\h\\h",
b1 = "{\\b1}",
b0 = "{\\b0}",
-- Without ASS
no_ass_nl = "\n",
- no_ass_prop_indent = "\t",
- no_ass_kv_sep = " ",
+ no_ass_indent = "\t",
+ no_ass_prefix_sep = " ",
no_ass_b1 = "\027[1m",
no_ass_b0 = "\027[0m",
}
@@ -61,8 +61,8 @@ function main()
o.ass_formatting = o.ass_formatting and has_vo_window()
if not o.ass_formatting then
o.nl = o.no_ass_nl
- o.prop_indent = o.no_ass_prop_indent
- o.kv_sep = o.no_ass_kv_sep
+ o.indent = o.no_ass_indent
+ o.prefix_sep = o.no_ass_prefix_sep
if not has_ansi() then
o.b1 = ""
o.b0 = ""
@@ -90,7 +90,7 @@ function add_file(s)
append_property(s, sec, "chapter", {prefix="Chapter:"})
if append_property(s, sec, "cache-used", {prefix="Cache:"}) then
append_property(s, sec, "demuxer-cache-duration",
- {prefix="+", suffix=" sec", nl="", indent=o.kv_sep,
+ {prefix="+", suffix=" sec", nl="", indent=o.prefix_sep,
prefix_sep="", no_prefix_markup=true})
end
end
@@ -193,8 +193,8 @@ function append_property(s, sec, prop, attr, excluded)
return false
end
- attr.prefix_sep = attr.prefix_sep or o.kv_sep
- attr.indent = attr.indent or o.prop_indent
+ attr.prefix_sep = attr.prefix_sep or o.prefix_sep
+ attr.indent = attr.indent or o.indent
attr.nl = attr.nl or o.nl
attr.suffix = attr.suffix or ""
attr.prefix = attr.prefix or ""