mpv/player
wm4 8c2d73f112 player: remove mechanisms for better logging with repl.lua
As preparation for making repl.lua part of the core (maybe), add some
mechanisms which are supposed to improve its behavior.

Add a silent mode. Calling mpv_request_log_messages() with the log level
name prefixed with "silent:" will disable logging from the API user's
perspective. But it will keep the log buffer, and record new messages,
without returning them to the user. If logging is enabled again by
requesting the same log level without "silent:" prefix, the buffered log
messages are returned to the user at once. This is not documented,
because it's far too messy and special as that I'd want anyone to rely
on this behavior, but it will be perfectly fine for an internal script.

Another thing is that we record early startup messages. The goal is to
make the repl.lua script show option and config parsing file errors.
This works only with the special "terminal-default" log level.

In addition, reduce the "terminal-default" capacity to only 100 log
messages. If this is going to be enabled by default, it shouldn't use
too much resources.
2019-11-18 00:44:54 +01:00
..
javascript js: expose mpv_abort_async_command() (match dbe831bd) 2019-09-11 21:08:04 +03:00
lua stats, demux: log byte level stream seeks 2019-11-07 22:53:13 +01:00
audio.c player: remove some unnecessary coverart special cases 2019-11-17 02:11:45 +01:00
client.c player: remove mechanisms for better logging with repl.lua 2019-11-18 00:44:54 +01:00
client.h client API: remove unused global event mask 2019-10-24 16:27:24 +02:00
command.c options: remove M_SETOPT_RUNTIME 2019-11-10 23:53:57 +01:00
command.h demux, command: add a third stream recording mechanism 2019-09-19 20:37:05 +02:00
configfiles.c options: remove M_SETOPT_RUNTIME 2019-11-10 23:53:57 +01:00
core.h options: deprecate --video-sync=display-adrop 2019-11-17 02:11:45 +01:00
external_files.c external_files: add .lrc subtitle extension 2019-09-02 01:25:43 +03:00
external_files.h player: get rid of mpv_global.opts 2018-05-24 19:56:35 +02:00
javascript.c js: expose mpv_abort_async_command() (match dbe831bd) 2019-09-11 21:08:04 +03:00
loadfile.c player: remove mechanisms for better logging with repl.lua 2019-11-18 00:44:54 +01:00
lua.c lua: don't pre-filter log level argument in mp.enable_messages() 2019-11-18 00:44:54 +01:00
main.c player: remove mechanisms for better logging with repl.lua 2019-11-18 00:44:54 +01:00
misc.c player: simplify --stream-dump code 2019-10-31 11:05:55 +01:00
osd.c player: format low cache duration with more decimals 2019-10-11 19:18:43 +02:00
playloop.c player: remove some unnecessary coverart special cases 2019-11-17 02:11:45 +01:00
screenshot.c screenshot, vo_image: use global swscale/zimg parameters 2019-10-31 15:44:09 +01:00
screenshot.h screenshot, vo_image: use global swscale/zimg parameters 2019-10-31 15:44:09 +01:00
scripting.c scripting: change when/how player waits for scripts being loaded 2018-04-18 01:17:41 +03:00
sub.c player: ensure backward playback state is propagated on track switching 2019-09-19 20:37:05 +02:00
video.c options: deprecate --video-sync=display-adrop 2019-11-17 02:11:45 +01:00