mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue