1
0
mirror of https://github.com/mpv-player/mpv synced 2025-02-05 14:42:24 +00:00
mpv/player
wm4 5059039c95 player: unrangle one aspect of audio EOF handling
For some reason, the buffered_audio variable was used to "cache" the
ao_get_delay() result. But I can't really see any reason why this should
be done, and it just seems to complicate everything.

One reason might be that the value should be checked only if the AO
buffers have been recently filled (as otherwise the delay could go low
and trigger an accidental EOF condition), but this didn't work anyway,
since buffered_audio is set from ao_get_delay() anyway at a later point
if it was unset. And in both cases, the value is used _after_ filling
the audio buffers anyway.

Simplify it. Also, move the audio EOF condition to a separate function.
(Note that ao_eof_reached() probably could/should whether the last
ao_play() call had AOPLAY_FINAL_CHUNK set to avoid accidental EOF on
underflows, but for now let's keep the code equivalent.)
2014-04-17 23:48:09 +02:00
..
lua lua: make it easier to integrate with foreign event loops 2014-04-12 20:41:12 +02:00
timeline player: remove ASX, SMIL and NSC playlist parsers 2014-04-13 15:40:05 +02:00
audio.c af: add replaygain_data field to af_stream and af_instance 2014-04-04 18:35:29 +02:00
client.c client API: remove mpv_event_pause_reason 2014-04-14 22:33:41 +02:00
client.h client API: add a way to notify clients of property changes 2014-04-06 03:22:49 +02:00
command.c client API: remove mpv_event_pause_reason 2014-04-14 22:33:41 +02:00
command.h client API: add a way to notify clients of property changes 2014-04-06 03:22:49 +02:00
configfiles.c build: simplify libavfilter configure checks 2014-03-16 13:19:29 +01:00
core.h client API: remove mpv_event_pause_reason 2014-04-14 22:33:41 +02:00
discnav.c player: rename dvdnav to discnav 2014-03-30 11:42:49 +09:00
loadfile.c client API: remove mpv_event_pause_reason 2014-04-14 22:33:41 +02:00
lua.c client API: remove mpv_event_pause_reason 2014-04-14 22:33:41 +02:00
lua.h lua: port to client API 2014-02-10 21:03:59 +01:00
main_fn.c build: add option to build a library 2014-02-10 21:25:22 +01:00
main.c player: add a --dump-stats option 2014-04-17 21:47:00 +02:00
misc.c player: dvdnav: fix start time when entering and leaving menu 2014-03-30 07:31:02 +02:00
osd.c player: hack to fix --msgmodule --term-osd-bar 2014-04-13 13:03:31 +02:00
playloop.c player: unrangle one aspect of audio EOF handling 2014-04-17 23:48:09 +02:00
screenshot.c sub: uglify OSD code path with locking 2014-01-18 01:27:43 +01:00
screenshot.h
sub.c sub: uglify OSD code path with locking 2014-01-18 01:27:43 +01:00
video.c command: allow changing filters before video chain initialization 2014-03-30 19:59:26 +02:00