1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-24 15:52:25 +00:00
mpv/player
wm4 7ab228629e audio: fix obscure audio resync failure with timelines
Somehow, there was a larger misunderstanding in the code: ao_buffer
does not need to be preserved over audio reinit for proper support of
gapless audio. The actual AO internal buffer takes care of this.

In fact, preserving ao_buffer just breaks audio resync. In the ordered
chapter case, end_pts is used, which means not all audio data in the
buffer is played, thus some data is left over when audio decoding
resumes on the next segment. This triggers some code that aborts resync
if there's "audio decoded" (ao_buffer contains something), but no PTS
is known (nothing was actually decoded yet).

Simplify, and always bind the output buffer to the decoder.

CC: @mpv-player/stable (maybe)
2014-09-05 01:53:10 +02:00
..
lua osc: Use osd-font for playlist buttons 2014-08-22 23:50:50 +02:00
timeline Move compat/ and bstr/ directory contents somewhere else 2014-08-29 12:31:52 +02:00
audio.c audio: fix obscure audio resync failure with timelines 2014-09-05 01:53:10 +02:00
client.c client API: fix memory leak with rejected events 2014-08-31 19:51:41 +02:00
client.h player: update cache state only if requested 2014-08-28 17:49:09 +02:00
command.c video: rename VOCTRL_GET_WINDOW_SIZE 2014-09-05 01:52:16 +02:00
command.h client API: minor optimizations for property notification 2014-08-02 01:53:22 +02:00
configfiles.c Revert "Remove DVD and Bluray support" 2014-07-15 01:49:02 +02:00
core.h player: dynamically change cache wait times 2014-08-27 23:24:55 +02:00
discnav.c video: get rid of video_next_pts field 2014-08-22 14:22:06 +02:00
loadfile.c audio: fix obscure audio resync failure with timelines 2014-09-05 01:53:10 +02:00
lua.c lua: expose mp_getcwd through mp.utils 2014-08-31 00:58:27 +02:00
main_fn.c cocoa: fix build by using the correct HAVE_* macro 2014-08-06 09:31:59 +02:00
main.c options: compatibility hack for --slave-broken 2014-08-25 00:48:55 +02:00
misc.c player: use virtual time for --audio-file with ordered chapters 2014-08-15 23:32:37 +02:00
osd.c player: better cache status on status line 2014-08-27 23:12:47 +02:00
playloop.c player: add --osd-playing-msg option 2014-09-02 00:12:52 +02:00
screenshot.c Move compat/ and bstr/ directory contents somewhere else 2014-08-29 12:31:52 +02:00
screenshot.h
scripting.c Move compat/ and bstr/ directory contents somewhere else 2014-08-29 12:31:52 +02:00
sub.c player: use virtual time for --audio-file with ordered chapters 2014-08-15 23:32:37 +02:00
video.c video: initial Matroska 3D support 2014-08-30 23:24:46 +02:00