summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorPhilippe Renon <philippe_renon@yahoo.fr>2017-09-28 22:51:57 +0200
committerSebastian Dröge <sebastian@centricular.com>2017-10-12 10:32:34 +0300
commit09af01a08852265c76bd1b0b9d8fe42ed2a1c919 (patch)
tree929968c67143ccc88b09bb5899aea1c7021a59a1 /sys
parent24561309f9b059fcdff3a21ec439b635f4f1559d (diff)
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
Diffstat (limited to 'sys')
-rw-r--r--sys/directsound/gstdirectsoundsink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/directsound/gstdirectsoundsink.c b/sys/directsound/gstdirectsoundsink.c
index 9c922c056..1a060a51a 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)) {