diff options
author | 2013-12-20 21:07:10 +0100 | |
---|---|---|
committer | 2013-12-20 21:07:58 +0100 | |
commit | e9e68fc399ed2805b43dff8f355142804e55c38c (patch) | |
tree | 5a4b3f08fe9c189eb51e0dab3ece4835ecd93b9e /video/filter/vf_delogo.c | |
parent | 6a8fc3f5e38f93c36d18ad8407d4f3f345d893db (diff) |
msg: use a global lock to synchronize printing
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).
Diffstat (limited to 'video/filter/vf_delogo.c')
0 files changed, 0 insertions, 0 deletions