summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilippe Renon <philippe_renon@yahoo.fr>2017-07-10 17:35:32 +0200
committerSebastian Dröge <sebastian@centricular.com>2017-07-11 09:23:32 +0300
commitb808c53b3024ae510d2c07b5d852bf326eb77705 (patch)
tree443492ff267ab4bdc99f98586643b281ab5c1a73
parente1c02e097d671c454e5e3afdad3c96b1eedebaf5 (diff)
downloadgstreamer-plugins-bad-b808c53b3024ae510d2c07b5d852bf326eb77705.tar.gz
directsoundsrc: Properly pass pLockedBuffer by reference when calling IDirectSoundCaptureBuffer_Lock
https://bugzilla.gnome.org/show_bug.cgi?id=784755
-rw-r--r--sys/directsound/gstdirectsoundsrc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/directsound/gstdirectsoundsrc.c b/sys/directsound/gstdirectsoundsrc.c
index 087efcd73..faaa5a22b 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);