1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-27 01:22:30 +00:00
mpv/core
wm4 88d79fc00d mp_msg: introduce new log functions and macros
This has two goals:
1. Getting rid of global variables to make the core library-safe.
2. Getting rid of all the MSGT_* constants and the inconsistent
   prefixes spread throughout the source code.

Both goals are not immediately reached with this commit. It's a huge
transition that will take time. There are over >2500 mp_msg calls in the
source, which all have to be replaced for this to work.

The inconsistent prefixes are in particular annoying. Lots of code
manually prefixes messages, e.g. mp_msg(MSGT_VO, MSGL_V, "[vo] ...").
Sometimes the prefixes don't even follow this convention (for example
vo_direct3d.c uses "<vo_direct3d>" as prefix). This commit allows
automatically adding prefixes on request, so consistency will
hopefully improve.

For now, this commit adds unused stuff, and behavior should not change.

In mplayer.c, move the GetCpuCaps() call, because that used mp_msg()
before mp_msg_init() was run.
2013-07-31 21:46:40 +02:00
..
input m_config: refactor some things 2013-07-28 18:44:21 +02:00
timeline core: make mpctx->opts a pointer 2013-07-28 18:44:21 +02:00
asxparser.c Cleanup some include statements 2013-07-12 22:16:26 +02:00
asxparser.h
av_common.c core: add common function to initialize AVPacket 2013-06-03 22:40:07 +02:00
av_common.h core: add common function to initialize AVPacket 2013-06-03 22:40:07 +02:00
av_log.c av_log: restore handling of prefixes and line breaks 2013-07-22 15:11:04 +02:00
av_log.h
av_opts.c vf_lavfi: allow setting avopts 2013-05-26 16:44:18 +02:00
av_opts.h
bstr.c bstr: add bstrspn() 2013-04-21 03:47:05 +02:00
bstr.h bstr: add bstrto0() 2013-04-21 03:47:05 +02:00
charset_conv.c sub: libguess support for -subcp 2013-06-25 00:11:57 +02:00
charset_conv.h sub: add subtitle charset conversion 2013-06-25 00:11:56 +02:00
codecs.c
codecs.h
command.c command: silence a warning 2013-07-29 01:03:36 +02:00
command.h input: handle mouse movement differently 2013-06-29 22:58:13 +02:00
cpudetect.c
cpudetect.h
encode_lavc.c core: change open_stream and demux_open signature 2013-07-12 21:56:40 +02:00
encode_lavc.h encode_lavc: simplify encoding status output; remove percentage 2013-06-20 11:17:13 +02:00
encode.h encode_lavc: simplify encoding status output; remove percentage 2013-06-20 11:17:13 +02:00
m_config.c options: handle presets directly in m_config 2013-07-31 20:56:00 +02:00
m_config.h options: handle presets directly in m_config 2013-07-31 20:56:00 +02:00
m_option.c options: handle presets directly in m_config 2013-07-31 20:56:00 +02:00
m_option.h options: handle presets directly in m_config 2013-07-31 20:56:00 +02:00
m_property.c m_property: fix non-sense code 2013-07-26 00:19:15 +02:00
m_property.h
m_struct.c
m_struct.h m_struct: try to be more standard C 2013-07-12 18:40:08 +02:00
mp_common.c cleanup: remove duplicated function, move escape parsing function 2013-02-16 23:24:46 +01:00
mp_common.h options: use m_config for options instead of m_struct 2013-07-21 23:27:31 +02:00
mp_core.h mp_msg: introduce new log functions and macros 2013-07-31 21:46:40 +02:00
mp_memory_barrier.h core: add a spsc ringbuffer implementation 2013-06-16 18:20:39 +02:00
mp_msg.c mp_msg: introduce new log functions and macros 2013-07-31 21:46:40 +02:00
mp_msg.h mp_msg: introduce new log functions and macros 2013-07-31 21:46:40 +02:00
mp_osd.h osd: always update already visible OSD bar on seeks 2013-02-16 20:50:05 +01:00
mp_ring.c mp_ring: make mp_ring_read_cb provide an exact amount of bytes 2013-07-13 10:25:39 +02:00
mp_ring.h mp_ring: improve documentation 2013-07-13 10:33:07 +02:00
mp_talloc.h
mplayer.c mp_msg: introduce new log functions and macros 2013-07-31 21:46:40 +02:00
mpv_global.h mp_msg: introduce new log functions and macros 2013-07-31 21:46:40 +02:00
options.c m_config: refactor some things 2013-07-28 18:44:21 +02:00
options.h m_config: refactor some things 2013-07-28 18:44:21 +02:00
parser-cfg.c parser-cfg: fix profile-desc 2013-02-18 17:01:25 +01:00
parser-cfg.h
parser-mpcmd.c options: fix exit code when using help options 2013-05-15 16:02:52 +02:00
parser-mpcmd.h options: fix exit code when using help options 2013-05-15 16:02:52 +02:00
path.c command: add screenshot_to_file command 2013-07-08 20:37:11 +02:00
path.h command: add screenshot_to_file command 2013-07-08 20:37:11 +02:00
playlist_parser.c core: change open_stream and demux_open signature 2013-07-12 21:56:40 +02:00
playlist_parser.h
playlist.c playlist: don't add entries in reverse 2013-07-05 14:07:56 +02:00
playlist.h command: add some playlist manipulation commands 2013-07-02 13:23:26 +02:00
resolve_quvi9.c core: add libquvi 0.9 support 2013-06-28 15:47:35 +02:00
resolve_quvi.c core: rename mplayer.h and quvi.c 2013-06-28 15:40:28 +02:00
resolve.h core: add libquvi 0.9 support 2013-06-28 15:47:35 +02:00
screenshot.c core: make mpctx->opts a pointer 2013-07-28 18:44:21 +02:00
screenshot.h command: add screenshot_to_file command 2013-07-08 20:37:11 +02:00
version.c build: make the "built on" report opt-out 2013-07-11 09:27:01 +02:00