summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJulian <MyFakeAcc.4@googlemail.com>2017-07-02 23:24:51 +0200
committerwm4 <wm4@nowhere>2017-10-09 20:40:32 +0200
commit6c7aae769a4dfa387426be19b7c525ab666b960e (patch)
tree6f525074d2c8bded4df05850354ac948bd8461b9
parent783046f5ff1dc392866d4df1140075851919db6a (diff)
downloadmpv-6c7aae769a4dfa387426be19b7c525ab666b960e.tar.bz2
mpv-6c7aae769a4dfa387426be19b7c525ab666b960e.tar.xz
stats: remove table in table
Almost cosmetic change. This tables-in-table was done back when we actually processed strings but that's long ago now and no longer needed nor useful.
-rw-r--r--player/lua/stats.lua20
1 files changed, 6 insertions, 14 deletions
diff --git a/player/lua/stats.lua b/player/lua/stats.lua
index fd3ec19c00..e7bce8c458 100644
--- a/player/lua/stats.lua
+++ b/player/lua/stats.lua
@@ -496,21 +496,13 @@ end
-- Returns an ASS string with "normal" stats
local function default_stats()
- local stats = {
- header = {},
- file = {},
- video = {},
- audio = {},
- }
-
+ local stats = {}
eval_ass_formatting()
- add_header(stats.header)
- add_file(stats.file)
- add_video(stats.video)
- add_audio(stats.audio)
-
- return table.concat(stats.header) .. table.concat(stats.file) ..
- table.concat(stats.video) .. table.concat(stats.audio)
+ add_header(stats)
+ add_file(stats)
+ add_video(stats)
+ add_audio(stats)
+ return table.concat(stats)
end