mirror of
https://github.com/mpv-player/mpv
synced 2025-03-29 15:00:27 +00:00
We have certain race conditions coming from doing multiple fprintf() calls (setting up colors etc.). I'm not sure whether it would be worth changing to code such that we do only one fprintf() call (and assume this synchronizes access), but considering it would be hard to do (Windows compatibility, ...), and that stdio uses per FILE locks anyway, this is simpler and probably not less efficient. Also, there's no problem handling the weird statusline special case this way. Note that mp_msg_* calls which are silent won't acquire the lock, and acquiring the lock happens on actual output only (which is slow and serialized anyway). |
||
---|---|---|
.. | ||
asxparser.c | ||
asxparser.h | ||
av_common.c | ||
av_common.h | ||
av_log.c | ||
av_log.h | ||
av_opts.c | ||
av_opts.h | ||
codecs.c | ||
codecs.h | ||
common.c | ||
common.h | ||
cpudetect.c | ||
cpudetect.h | ||
encode_lavc.c | ||
encode_lavc.h | ||
encode.h | ||
global.h | ||
msg.c | ||
msg.h | ||
playlist_parser.c | ||
playlist_parser.h | ||
playlist.c | ||
playlist.h | ||
version.c |