summaryrefslogtreecommitdiffstats
path: root/stream/stream_lavf.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-09-05 22:21:06 +0200
committerAlessandro Ghedini <alessandro@ghedini.me>2014-09-06 00:22:07 +0200
commitb109d20ef745415d8d39af292062aa89a3c94fd8 (patch)
tree6cb94445a99c006d184423692f80647273471d38 /stream/stream_lavf.c
parent3c7d49c38ff8eaebf90be9971b089f42253668de (diff)
downloadmpv-b109d20ef745415d8d39af292062aa89a3c94fd8.tar.bz2
mpv-b109d20ef745415d8d39af292062aa89a3c94fd8.tar.xz
audio/out: make EOF handling properly event-based
With --gapless-audio=no, changing from one file to the next apparently made it hang, until the player was woken up by unrelated events like input. The reason was that the AO doesn't notify the player of EOF properly. the played was querying ao_eof_reached(), and then just went to sleep, without anything waking it up. Make it event-based: the AO wakes up the playloop if the EOF state changes. We could have fixed this in a simpler way by synchronously draining the AO in these cases. But I think proper event handling is preferable. Fixes: #1069 CC: @mpv-player/stable (perhaps)
Diffstat (limited to 'stream/stream_lavf.c')
0 files changed, 0 insertions, 0 deletions