[MPlayer-cvslog] r32814 - trunk/libmpcodecs/dec_audio.c

reimar subversion at mplayerhq.hu
Mon Jan 24 21:09:29 CET 2011


Author: reimar
Date: Mon Jan 24 21:09:28 2011
New Revision: 32814

Log:
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.

Modified:
   trunk/libmpcodecs/dec_audio.c

Modified: trunk/libmpcodecs/dec_audio.c
==============================================================================
--- trunk/libmpcodecs/dec_audio.c	Sun Jan 23 20:04:03 2011	(r32813)
+++ trunk/libmpcodecs/dec_audio.c	Mon Jan 24 21:09:28 2011	(r32814)
@@ -361,7 +361,9 @@ int init_audio_filters(sh_audio_t *sh_au
     *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;


More information about the MPlayer-cvslog mailing list