[vlc-commits] wasapi: fix wrong state when the fmt is not recognised

Thomas Guillem git at videolan.org
Tue Jan 17 09:13:14 CET 2017


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Tue Jan 17 09:12:08 2017 +0100| [0ae30bfe340e744cec9d94516843dd899379dbde] | committer: Thomas Guillem

wasapi: fix wrong state when the fmt is not recognised

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0ae30bfe340e744cec9d94516843dd899379dbde
---

 modules/audio_output/wasapi.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/modules/audio_output/wasapi.c b/modules/audio_output/wasapi.c
index 1ed39b5..cafca6b 100644
--- a/modules/audio_output/wasapi.c
+++ b/modules/audio_output/wasapi.c
@@ -492,7 +492,10 @@ static HRESULT Start(aout_stream_t *s, audio_sample_format_t *restrict pfmt,
         buffer_duration = AOUT_MAX_PREPARE_TIME * 10;
     }
     else
+    {
+        hr = E_FAIL;
         goto error;
+    }
 
     hr = IAudioClient_IsFormatSupported(sys->client, shared_mode,
                                         pwf, &pwf_closest);



More information about the vlc-commits mailing list