directsoundsrc: Properly pass pLockedBuffer by reference when calling IDirectSoundCap...
authorPhilippe Renon <philippe_renon@yahoo.fr>
Mon, 10 Jul 2017 15:35:32 +0000 (17:35 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Tue, 11 Jul 2017 06:23:32 +0000 (09:23 +0300)
https://bugzilla.gnome.org/show_bug.cgi?id=784755

sys/directsound/gstdirectsoundsrc.c

index 087efcd..faaa5a2 100644 (file)
@@ -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);