From 09af01a08852265c76bd1b0b9d8fe42ed2a1c919 Mon Sep 17 00:00:00 2001 From: Philippe Renon Date: Thu, 28 Sep 2017 22:51:57 +0200 Subject: [PATCH] directsoundsink: simplify how DirecSoundBuffer is cleared we always want to clear the whole buffer so no need to start from offset even if the offset is always zero. https://bugzilla.gnome.org/show_bug.cgi?id=788847 --- sys/directsound/gstdirectsoundsink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/directsound/gstdirectsoundsink.c b/sys/directsound/gstdirectsoundsink.c index 9c922c0565..1a060a51ae 100644 --- a/sys/directsound/gstdirectsoundsink.c +++ b/sys/directsound/gstdirectsoundsink.c @@ -815,7 +815,7 @@ gst_directsound_sink_reset (GstAudioSink * asink) /*reset the buffer */ hRes = IDirectSoundBuffer_Lock (dsoundsink->pDSBSecondary, - dsoundsink->current_circular_offset, dsoundsink->buffer_size, + 0, dsoundsink->buffer_size, &pLockedBuffer, &dwSizeBuffer, NULL, NULL, 0L); if (SUCCEEDED (hRes)) {