diff options
author | wm4 <wm4@nowhere> | 2017-11-10 10:23:49 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2017-11-10 10:23:49 +0100 |
commit | f123cc4c9b34e7ce3d4a890ac851a5d6e2703278 (patch) | |
tree | 70fbb9a22695e93851f66555cee7a0019e6778f7 /osdep/macosx_touchbar.h | |
parent | d3bc93cf2e28c346c80f8545cfe765dadf821ae0 (diff) | |
download | mpv-f123cc4c9b34e7ce3d4a890ac851a5d6e2703278.tar.bz2 mpv-f123cc4c9b34e7ce3d4a890ac851a5d6e2703278.tar.xz |
demux: fix a race condition with async seeking
demux_add_packet() must completely ignore any packets that are added
while a queued seek is not initiated yet.
The main issue is that after setting in->seeking==true, the central lock
is released, and it can take "a while" until it's reacquired on the
demux thread and the seek is actually initiated. During that time,
packets could be read and added, that have nothing to do with the new
state.
Diffstat (limited to 'osdep/macosx_touchbar.h')
0 files changed, 0 insertions, 0 deletions