Mercurial > mplayer.hg
changeset 32727:470867f7e1df
Remove resetting of a_out_buffer_len in init_audio_filters.
Since the sample format is not changed when this function is called in
the middle of playback this is safe to do and the overall behaviour
is expected to be nicer.
author | reimar |
---|---|
date | Mon, 24 Jan 2011 20:09:28 +0000 |
parents | 08adc582d9cc |
children | ce80aa247b4b |
files | libmpcodecs/dec_audio.c |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpcodecs/dec_audio.c Sun Jan 23 19:04:03 2011 +0000 +++ b/libmpcodecs/dec_audio.c Mon Jan 24 20:09:28 2011 +0000 @@ -361,7 +361,9 @@ *out_channels = afs->output.nch; *out_format = afs->output.format; - sh_audio->a_out_buffer_len = 0; + // Do not reset a_out_buffer_len. This may cause some + // glitches/slow adaption of changes but it is better than + // losing audio even for minor adjustments and avoids sync issues. // ok! sh_audio->afilter = (void *) afs;