mirror of https://github.com/mpv-player/mpv
fix -loop problem
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9590 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
f89de81e9f
commit
5ae779673c
|
@ -152,6 +152,7 @@ static int init(int rate,int channels,int format,int flags)
|
||||||
waveOutGetVolume(hWaveOut,&restoredvolume);
|
waveOutGetVolume(hWaveOut,&restoredvolume);
|
||||||
//allocate buffer memory as one big block
|
//allocate buffer memory as one big block
|
||||||
buffer = malloc(totalBufferSize);
|
buffer = malloc(totalBufferSize);
|
||||||
|
memset(buffer,0x0,totalBufferSize);
|
||||||
//and setup pointers to each buffer
|
//and setup pointers to each buffer
|
||||||
waveBlocks = (WAVEHDR*)buffer;
|
waveBlocks = (WAVEHDR*)buffer;
|
||||||
buffer += sizeof(WAVEHDR) * BUFFER_COUNT;
|
buffer += sizeof(WAVEHDR) * BUFFER_COUNT;
|
||||||
|
|
Loading…
Reference in New Issue