directsoundsrc: Properly pass pLockedBuffer by reference when calling IDirectSoundCaptureBuffer_Lock

https://bugzilla.gnome.org/show_bug.cgi?id=784755
This commit is contained in:
Philippe Renon 2017-07-10 17:35:32 +02:00 committed by Sebastian Dröge
parent 636cce13b9
commit db36718ee4

View file

@ -867,7 +867,7 @@ gst_directsound_src_reset (GstAudioSrc * asrc)
/*reset the buffer */ /*reset the buffer */
hRes = IDirectSoundCaptureBuffer_Lock (dsoundsrc->pDSBSecondary, hRes = IDirectSoundCaptureBuffer_Lock (dsoundsrc->pDSBSecondary,
dsoundsrc->current_circular_offset, dsoundsrc->buffer_size, dsoundsrc->current_circular_offset, dsoundsrc->buffer_size,
pLockedBuffer, &dwSizeBuffer, NULL, NULL, 0L); &pLockedBuffer, &dwSizeBuffer, NULL, NULL, 0L);
if (SUCCEEDED (hRes)) { if (SUCCEEDED (hRes)) {
memset (pLockedBuffer, 0, dwSizeBuffer); memset (pLockedBuffer, 0, dwSizeBuffer);