[vlc-commits] wasapi: Don't fail if the client is already initialized
Hugo Beauzée-Luyssen
git at videolan.org
Fri Feb 27 13:05:36 CET 2015
vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Tue Feb 10 11:58:54 2015 +0100| [744509e9debc804923b2362d6d7b5feb77f660d0] | committer: Hugo Beauzée-Luyssen
wasapi: Don't fail if the client is already initialized
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=744509e9debc804923b2362d6d7b5feb77f660d0
---
modules/audio_output/wasapi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/audio_output/wasapi.c b/modules/audio_output/wasapi.c
index 7a47161..ae470f1 100644
--- a/modules/audio_output/wasapi.c
+++ b/modules/audio_output/wasapi.c
@@ -405,7 +405,7 @@ static HRESULT Start(aout_stream_t *s, audio_sample_format_t *restrict fmt,
AOUT_MAX_PREPARE_TIME * 10, 0,
(hr == S_OK) ? &wf.Format : pwf, sid);
CoTaskMemFree(pwf);
- if (FAILED(hr))
+ if (FAILED(hr) && hr != AUDCLNT_E_ALREADY_INITIALIZED)
{
msg_Err(s, "cannot initialize audio client (error 0x%lx)", hr);
goto error;
More information about the vlc-commits
mailing list