diff options
author | wm4 <wm4@nowhere> | 2013-07-31 21:40:30 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-07-31 21:46:40 +0200 |
commit | 88d79fc00df39dc0180de86c758697f5ab3e56cb (patch) | |
tree | 5764f1067cae79dad6a01dccfb241db894b67683 /video/img_format.c | |
parent | d1de1e090f91a254f066505ee5811feda4d93dde (diff) | |
download | mpv-88d79fc00df39dc0180de86c758697f5ab3e56cb.tar.bz2 mpv-88d79fc00df39dc0180de86c758697f5ab3e56cb.tar.xz |
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.
Diffstat (limited to 'video/img_format.c')
0 files changed, 0 insertions, 0 deletions