summaryrefslogtreecommitdiffstats
path: root/libao2/ao_win32.c
diff options
context:
space:
mode:
authorfaust3 <faust3@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-03-15 10:11:36 +0000
committerfaust3 <faust3@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-03-15 10:11:36 +0000
commit5ae779673c03001fc897d6f78c539922604b988b (patch)
treed04af65db93058f24a15377eef3391ead9033e4d /libao2/ao_win32.c
parentf89de81e9f3ea923eb287f50e0748add467203d5 (diff)
downloadmpv-5ae779673c03001fc897d6f78c539922604b988b.tar.bz2
mpv-5ae779673c03001fc897d6f78c539922604b988b.tar.xz
fix -loop problem
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9590 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libao2/ao_win32.c')
-rw-r--r--libao2/ao_win32.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libao2/ao_win32.c b/libao2/ao_win32.c
index 32896c4cdf..44e5f6dec3 100644
--- a/libao2/ao_win32.c
+++ b/libao2/ao_win32.c
@@ -152,6 +152,7 @@ static int init(int rate,int channels,int format,int flags)
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;