diff options
author | wm4 <wm4@nowhere> | 2014-07-28 20:40:43 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-07-28 21:20:37 +0200 |
commit | 261506e36edd88dd1b92ead93868bb624ddcf324 (patch) | |
tree | 47e03008e314d0e3eb3cb2c2862ce9fc43f83e03 /common/codecs.c | |
parent | 58255e0e2b7a8d5fef45968d7b8dcb2916ba5d6d (diff) | |
download | mpv-261506e36edd88dd1b92ead93868bb624ddcf324.tar.bz2 mpv-261506e36edd88dd1b92ead93868bb624ddcf324.tar.xz |
audio: change playback restart and resyncing
This commit makes audio decoding non-blocking. If e.g. the network is
too slow the playloop will just go to sleep, instead of blocking until
enough data is available.
For video, this was already done with commit 7083f88c. For audio, it's
unfortunately much more complicated, because the audio decoder was used
in a blocking manner. Large changes are required to get around this.
The whole playback restart mechanism must be turned into a statemachine,
especially since it has close interactions with video restart. Lots of
video code is thus also changed.
(For the record, I don't think switching this code to threads would
make this conceptually easier: the code would still have to deal with
external input while blocked, so these in-between states do get visible
[and thus need to be handled] anyway. On the other hand, it certainly
should be possible to modularize this code a bit better.)
This will probably cause a bunch of regressions.
Diffstat (limited to 'common/codecs.c')
0 files changed, 0 insertions, 0 deletions