vlc/vlc-2.2 | branch: master | Rémi Denis-Courmont <[email protected]> | Wed Apr  
8 18:58:18 2015 +0300| [1c00d84aec755f91deccf2fe0e75ce0cc2f879b0] | committer: 
Jean-Baptiste Kempf

Qt4: allow either COM model for associations (fixes #14323)

The model does not matter here as affected objects do not outlive the
function call and are not used across threads. Still the references
counter of the apartment must remain balanced.

(cherry picked from commit aa9976b1f41fe7eb44b640163c5ff5f00a4e2953)
Signed-off-by: Jean-Baptiste Kempf <[email protected]>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.2.git/?a=commit;h=1c00d84aec755f91deccf2fe0e75ce0cc2f879b0
---

 modules/gui/qt4/components/simple_preferences.cpp |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/gui/qt4/components/simple_preferences.cpp 
b/modules/gui/qt4/components/simple_preferences.cpp
index 605012f..12078b3 100644
--- a/modules/gui/qt4/components/simple_preferences.cpp
+++ b/modules/gui/qt4/components/simple_preferences.cpp
@@ -1269,6 +1269,8 @@ void SPrefsPanel::assoDialog()
 {
     HRESULT hr;
     hr = CoInitializeEx( NULL, COINIT_MULTITHREADED );
+    if( hr == RPC_E_CHANGED_MODE )
+        hr = CoInitializeEx( NULL, COINIT_APARTMENTTHREADED );
     if( SUCCEEDED(hr) )
     {
         void *p;

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to