[vlc-devel] [PATCH] Fixing Qt volume control fails on Windows 7

Юрий frt43 at yandex.ru
Thu Oct 11 20:29:14 CEST 2012


---
 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 73e9de0..9107197
--- a/modules/audio_output/wasapi.c
+++ b/modules/audio_output/wasapi.c
@@ -90,6 +90,9 @@ static int TryEnter(vlc_object_t *obj)
 {
     HRESULT hr = CoInitializeEx(NULL, COINIT_MULTITHREADED);
     if (unlikely(FAILED(hr)))
+        hr = CoInitializeEx(NULL, COINIT_APARTMENTTHREADED);
+
+    if (unlikely(FAILED(hr)))
     {
         msg_Err (obj, "cannot initialize COM (error 0x%lx)", hr);
         return -1;
--
1.7.9.5




More information about the vlc-devel mailing list