diff options
author | wm4 <wm4@nowhere> | 2014-07-25 14:22:40 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-07-25 14:32:45 +0200 |
commit | f24f960ec78552da3d0b143c4fb88a732e8e9e11 (patch) | |
tree | 88bba8ec8be9380f275781b4b4d7622cc49c25b0 /osdep | |
parent | 08415933db8ede1ec27cb43654bc6fffdbd6ad93 (diff) | |
download | mpv-f24f960ec78552da3d0b143c4fb88a732e8e9e11.tar.bz2 mpv-f24f960ec78552da3d0b143c4fb88a732e8e9e11.tar.xz |
command: fix and simplify overlay_add
Actually free the old mmap region when readding an overlay of the same
ID without removing it before. (This is explicitly documented as
working.)
Replace the OSD atomically. Before this commit, the overlays were
removed and then readded to avoid synchronization problems.
Simplify the code: now there is no weird mapping between index and ID.
The OSD sub-bitmap list still needs to be prepared to skip unused IDs
(since each sub-bitmap list entry must be in use), but the code for this
is relatively separated now.
Fixes issue #956.
Diffstat (limited to 'osdep')
0 files changed, 0 insertions, 0 deletions