diff options
author | wm4 <wm4@nowhere> | 2014-07-18 15:10:28 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-07-18 15:10:28 +0200 |
commit | 7083f88ca8b98aa74dbc9e34d5c5cf6e150cfe0b (patch) | |
tree | 8835b9e68ef6738203cfae798fb0df5122fdae08 /libmpv | |
parent | 848546f2de52b54f78077cb4ca968e089e3e010a (diff) | |
download | mpv-7083f88ca8b98aa74dbc9e34d5c5cf6e150cfe0b.tar.bz2 mpv-7083f88ca8b98aa74dbc9e34d5c5cf6e150cfe0b.tar.xz |
video: don't block when reading video packets
Instead of blocking on the demuxer when reading a packet, let packets be
read asynchronously. Basically, it polls whether a packet is available,
and if not, the playloop goes to sleep until the demuxer thread wakes it
up.
Note that the player will still block for I/O, because audio is still
read synchronously. It's much harder to do the same change for audio
(because of the design of the audio decoding path and especially
initialization), so audio will have to be done later.
Diffstat (limited to 'libmpv')
0 files changed, 0 insertions, 0 deletions