mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-28 03:00:35 +00:00
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
This commit is contained in:
parent
24561309f9
commit
09af01a088
1 changed files with 1 additions and 1 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Reference in a new issue