summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2019-11-22 01:08:20 +0100
committerwm4 <wm4@nowhere>2019-11-22 01:15:08 +0100
commit65a531b8e45eb4413ed847ad335d8b3f9a827d0f (patch)
tree37b1085242e50c4604e9718704968ff21a902e19 /.github
parent53477ffc4b1a9013c5edcf90320ff6f809b293d6 (diff)
downloadmpv-65a531b8e45eb4413ed847ad335d8b3f9a827d0f.tar.bz2
mpv-65a531b8e45eb4413ed847ad335d8b3f9a827d0f.tar.xz
msg: drop old instead of new messages on overflow
It did that because there was no other way. It used a lock-free ring buffer, which does not support this. Use a "manual" ring buffer with explicit locks instead, and drop messages from the start. (We could have continued to use mp_ring, but it was already too late, and although mp_ring is fine, using it for types other than bytes looked awkward, and writing a ring buffer yet again seemed nicer. At least it's not C++, where mp_ring would have been a template, and everything would have looked like shit soup no matter what.)
Diffstat (limited to '.github')
0 files changed, 0 insertions, 0 deletions