summaryrefslogtreecommitdiffstats
path: root/demux/demux_mkv.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-07-21 19:27:24 +0200
committerwm4 <wm4@nowhere>2014-07-21 19:29:50 +0200
commit4b4bd9e5f733f47e9c8c68099ba65b446486da81 (patch)
tree02cd0d96399ce16a2d186333871fc429d8a14916 /demux/demux_mkv.c
parentb6dd1341d2ac9ed29c97be2705b81c345a973d40 (diff)
downloadmpv-4b4bd9e5f733f47e9c8c68099ba65b446486da81.tar.bz2
mpv-4b4bd9e5f733f47e9c8c68099ba65b446486da81.tar.xz
demux: asynchronous seeking
This tells the demuxer thread that it should seek, instead of waiting until the demuxer thread is ready. Care has to be taken about the state between seek request and actual seeking: newly demuxed packets have to be discarded. We can't just flush when doing the actual seek, because the user thread could read these packets. I'm wondering if this could lead to issues due to relaxed ordering of operations. But it should be fine, since seeking influences packet reading only, and seeking is always strictly done before that. Currently, this will have no advantages; unless audio is disabled. Then seeking as well as normal playback can be non-blocking.
Diffstat (limited to 'demux/demux_mkv.c')
0 files changed, 0 insertions, 0 deletions