directsoundsrc: Properly pass pLockedBuffer by reference when calling IDirectSoundCaptureBuffer_Lock
https://bugzilla.gnome.org/show_bug.cgi?id=784755
This commit is contained in:
parent
636cce13b9
commit
db36718ee4
@ -867,7 +867,7 @@ gst_directsound_src_reset (GstAudioSrc * asrc)
|
||||
/*reset the buffer */
|
||||
hRes = IDirectSoundCaptureBuffer_Lock (dsoundsrc->pDSBSecondary,
|
||||
dsoundsrc->current_circular_offset, dsoundsrc->buffer_size,
|
||||
pLockedBuffer, &dwSizeBuffer, NULL, NULL, 0L);
|
||||
&pLockedBuffer, &dwSizeBuffer, NULL, NULL, 0L);
|
||||
|
||||
if (SUCCEEDED (hRes)) {
|
||||
memset (pLockedBuffer, 0, dwSizeBuffer);
|
||||
|
Loading…
x
Reference in New Issue
Block a user