From b808c53b3024ae510d2c07b5d852bf326eb77705 Mon Sep 17 00:00:00 2001 From: Philippe Renon Date: Mon, 10 Jul 2017 17:35:32 +0200 Subject: [PATCH] directsoundsrc: Properly pass pLockedBuffer by reference when calling IDirectSoundCaptureBuffer_Lock https://bugzilla.gnome.org/show_bug.cgi?id=784755 --- sys/directsound/gstdirectsoundsrc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/directsound/gstdirectsoundsrc.c b/sys/directsound/gstdirectsoundsrc.c index 087efcd..faaa5a2 100644 --- a/sys/directsound/gstdirectsoundsrc.c +++ b/sys/directsound/gstdirectsoundsrc.c @@ -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); -- 2.7.4