diff options
author | wm4 <wm4@nowhere> | 2014-09-05 22:21:06 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-09-05 23:45:54 +0200 |
commit | bdf49d137e5fc63f22ddbb54f4d585719cdd2e5d (patch) | |
tree | 387f432aa04e14362f8f214a6919eeafe4ad99b7 /audio/filter/af_volume.c | |
parent | 6b59d6a47b5c27179b60a3962f4680bbce6e89cd (diff) | |
download | mpv-bdf49d137e5fc63f22ddbb54f4d585719cdd2e5d.tar.bz2 mpv-bdf49d137e5fc63f22ddbb54f4d585719cdd2e5d.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 'audio/filter/af_volume.c')
0 files changed, 0 insertions, 0 deletions