mpv/libmpv
wm4 23b83c6676 client API: allow using msg-level option for log messages
Client API users can enable log output with mpv_request_log_messages().
But you can enable only a single log level. This is normally enough, but
the --msg-level option (which controls the terminal log level) provides
more flexibility. Due to internal complexity, it would be hard to
provide the same flexibility for each client API handle. But there's a
simple way to achieve basically the same thing: add an option that sends
log messages to the API handle, which would also be printed to the
terminal as by --msg-level.

The only change is that we don't disable this logic if the terminal is
disabled. Instead we check for this before the message is output, which
in theory can lower performance if messages are being spammed. It could
be handled with some more effort, but the gain would be negligible.
2015-06-20 21:40:47 +02:00
..
client.h client API: allow using msg-level option for log messages 2015-06-20 21:40:47 +02:00
mpv.def vo_opengl_cb: deprecate mpv_opengl_cb_render() 2015-04-09 19:31:01 +02:00
mpv.pc.in build: add hacks to force waf to generate valid .pc files 2014-08-07 23:45:40 +02:00
opengl_cb.h vo_opengl_cb: deprecate mpv_opengl_cb_render() 2015-04-09 19:31:01 +02:00
qthelper.hpp client API: qthelper: return NULL as handle if unset 2014-12-30 23:28:07 +01:00