summaryrefslogtreecommitdiffstats
path: root/common/av_log.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-03-01 21:51:59 +0100
committerwm4 <wm4@nowhere>2016-03-01 21:51:59 +0100
commite0944991973c04701c830647a3f943b43d546b20 (patch)
treef9f455d3a26aabe17ce4d2080fb12066a5e92c5d /common/av_log.c
parent33774e18ed4c49857c042870099e3e3dd6fe614d (diff)
downloadmpv-e0944991973c04701c830647a3f943b43d546b20.tar.bz2
mpv-e0944991973c04701c830647a3f943b43d546b20.tar.xz
msg: use dynamic buffer for message formatting
Until now, a rather large stack buffer was used for this, and also a static buffer in mp_log_root. The latter was added to buffer partial lines, and the stack buffer was used only for MSGL_STATUS and MSGL_STATS (I guess because these are the most likely/severe to clash with partial line buffering). Make the buffer in mp_log_root dynamically sized, so we don't get cut off log lines if the text is excessively large. (The OpenGL extension list dumped by vo_opengl is such an example.) Since we still have to support partial line buffering (FFmpeg's log callbacks leave no other choice), keep the stack buffer. But make it smaller; there's no way all ~6KB are going to be needed in any situation.
Diffstat (limited to 'common/av_log.c')
0 files changed, 0 insertions, 0 deletions