[vlc-commits] directsound: clear the rest of the ring buffer too

Ludovic Fauvet git at videolan.org
Thu Jul 25 01:05:16 CEST 2013


vlc | branch: master | Ludovic Fauvet <etix at videolan.org> | Wed Jul 24 13:00:58 2013 +0200| [ec74771e3c02387aa883798fd2581ae4e19438ed] | committer: Jean-Baptiste Kempf

directsound: clear the rest of the ring buffer too

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ec74771e3c02387aa883798fd2581ae4e19438ed
---

 modules/audio_output/directx.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/audio_output/directx.c b/modules/audio_output/directx.c
index 32cdf84..753fda1 100644
--- a/modules/audio_output/directx.c
+++ b/modules/audio_output/directx.c
@@ -704,6 +704,7 @@ static int FillBuffer( audio_output_t *p_aout, block_t *p_buffer )
     if( p_buffer == NULL )
     {
         memset( p_write_position, 0, l_bytes1 );
+        memset( p_wrap_around, 0, l_bytes2 );
     }
     else
     {



More information about the vlc-commits mailing list