[vlc-commits] wasapi: fix Flush()
Rémi Denis-Courmont
git at videolan.org
Tue May 15 19:40:32 CEST 2012
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue May 15 20:19:44 2012 +0300| [1ed466faa409aa6c9f95e29aa05261a180d1fedb] | committer: Rémi Denis-Courmont
wasapi: fix Flush()
The stream must be stopped before it can be flushed (reset).
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=1ed466faa409aa6c9f95e29aa05261a180d1fedb
---
modules/audio_output/wasapi.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/modules/audio_output/wasapi.c b/modules/audio_output/wasapi.c
index 9c175a7..e5b3c72 100644
--- a/modules/audio_output/wasapi.c
+++ b/modules/audio_output/wasapi.c
@@ -123,8 +123,9 @@ static void Flush(audio_output_t *aout, bool wait)
HRESULT hr;
if (wait)
- return;
+ return; /* Not drain implemented */
+ IAudioClient_Stop(sys->client);
hr = IAudioClient_Reset(sys->client);
if (FAILED(hr))
msg_Warn(aout, "cannot reset stream (error 0x%lx)", hr);
More information about the vlc-commits
mailing list