diff options
author | wm4 <wm4@nowhere> | 2016-03-01 22:34:14 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-03-01 22:36:05 +0100 |
commit | 46a3165cde956683e514788f625a87b3380ddf7c (patch) | |
tree | d1bc544a01540fb1c0349eb0edef4310138365cc /test | |
parent | a5eef06225f17890a0f49dc4c797ff0a3171cdd0 (diff) | |
download | mpv-46a3165cde956683e514788f625a87b3380ddf7c.tar.bz2 mpv-46a3165cde956683e514788f625a87b3380ddf7c.tar.xz |
msg: introduce partial line buffers per mp_log
The goal is reducing log messups (which happen surprisingly often) by
buffering partial lines in mp_log. This is still not 100% reliable, but
better.
The extrabuffers for MSGL_STATUS and MSGL_STATS are not needed anymore,
because a separate mp_log instance can be used if problems really occur.
Also, give up, and replace the snprintf acrobatics with bstr.
mp_log.partial has a quite subtle problem wrt. talloc: talloc parents
can not be used, because there's no lock around the internal talloc
structures associated with mp_log. Thus it has to be freed manually,
even if this happens through a talloc destructor.
Diffstat (limited to 'test')
0 files changed, 0 insertions, 0 deletions