[Mplayer-cvslog] CVS: 0_90/libao2 ao_win32.c,1.2,1.3

Arpi of Ize arpi at mplayerhq.hu
Mon Mar 17 01:52:15 CET 2003


Update of /cvsroot/mplayer/0_90/libao2
In directory mail:/var/tmp.root/cvs-serv22326

Modified Files:
	ao_win32.c 
Log Message:
backport: dunno, clear buffer after alloc


Index: ao_win32.c
===================================================================
RCS file: /cvsroot/mplayer/0_90/libao2/ao_win32.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- ao_win32.c	30 Dec 2002 13:52:29 -0000	1.2
+++ ao_win32.c	17 Mar 2003 00:52:13 -0000	1.3
@@ -152,6 +152,7 @@
 	waveOutGetVolume(hWaveOut,&restoredvolume); 
 	//allocate buffer memory as one big block
 	buffer = malloc(totalBufferSize);
+	memset(buffer,0x0,totalBufferSize);
     //and setup pointers to each buffer 
     waveBlocks = (WAVEHDR*)buffer;
     buffer += sizeof(WAVEHDR) * BUFFER_COUNT;



More information about the MPlayer-cvslog mailing list