[vlc-devel] [PATCH 2/4] directsound: clear the rest of the ring buffer too

Ludovic Fauvet etix at videolan.org
Sat Jul 20 01:50:50 CEST 2013


---
 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 6a39785..20fb8bb 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
     {
-- 
1.8.3.3




More information about the vlc-devel mailing list