diff options
author | wm4 <wm4@nowhere> | 2014-03-01 15:46:39 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-03-01 15:46:39 +0100 |
commit | 4de22d1cbc1ff8201f66629ca75de32e7e7ed223 (patch) | |
tree | bdec969f2172ff28587b7cf5ce6813149aba5e21 /input/input.h | |
parent | b684ea55a513eddf73744527cd9ce1605fce148c (diff) | |
download | mpv-4de22d1cbc1ff8201f66629ca75de32e7e7ed223.tar.bz2 mpv-4de22d1cbc1ff8201f66629ca75de32e7e7ed223.tar.xz |
client API: fix playloop thread wakeup
The playloop usually waits in select(), using a timeout needed for
refilling audio and video buffers. This means the client API needs
a separate mechanism to interrupt the select() call. This mechanism
exists, but I forgot to use it. This commit fixes it.
If it works, this will make the client API react faster, epsecially
in audio-only mode. If video is enabled, the reaction time is capped
to 50ms (or somewhat faster if the framerate is >20 fps), because
the playloop stops reacting to anything in order to render and time
the next video frame. (This will be fixed later by moving the VO
to its own thread.)
Diffstat (limited to 'input/input.h')
0 files changed, 0 insertions, 0 deletions