diff options
author | Martin Herkt <lachs0r@srsfckn.biz> | 2014-04-24 18:16:47 +0200 |
---|---|---|
committer | Martin Herkt <lachs0r@srsfckn.biz> | 2014-05-04 02:46:11 +0200 |
commit | 11eaa525298e7ee61a01ee254a73cf0e3a3ec3b2 (patch) | |
tree | eecf2b1dcbad02e69745b8e179f216caa364129d /DOCS/lua_examples | |
parent | b54c963258cdd6540cfde3f1fbe3f00a4ba0306a (diff) | |
download | mpv-11eaa525298e7ee61a01ee254a73cf0e3a3ec3b2.tar.bz2 mpv-11eaa525298e7ee61a01ee254a73cf0e3a3ec3b2.tar.xz |
options: rename msg-related options
--msgcolor → --msg-color
--msglevel → --msg-level
--msgmodule → --msg-module
--msgtime → --msg-time (also document this one)
--playing-msg → --term-playing-msg
--status-msg → --term-status-msg
Diffstat (limited to 'DOCS/lua_examples')
-rw-r--r-- | DOCS/lua_examples/status-line.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/DOCS/lua_examples/status-line.lua b/DOCS/lua_examples/status-line.lua index be3374a7cf..d28bdcc082 100644 --- a/DOCS/lua_examples/status-line.lua +++ b/DOCS/lua_examples/status-line.lua @@ -34,7 +34,7 @@ function update_status_line() atsl(mp.get_property_osd("percent-pos", -1)) atsl("%)") - local r = mp.get_property_number("speed", -1) + local r = mp.get_property_number("speed", -1) if r ~= 1 then atsl(string.format(" x%4.2f", r)) end @@ -54,14 +54,14 @@ function update_status_line() atsl(" Late: ") atsl(r) end - + r = mp.get_property_number("cache", 0) if r > 0 then atsl(string.format(" Cache: %d%% ", r)) end -- Set the new status line - mp.set_property("options/status-msg", newStatus) + mp.set_property("options/term-status-msg", newStatus) end -- Register the event |