diff options
Diffstat (limited to 'avmedia')
-rw-r--r-- | avmedia/source/win/framegrabber.cxx | 2 | ||||
-rw-r--r-- | avmedia/source/win/player.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/avmedia/source/win/framegrabber.cxx b/avmedia/source/win/framegrabber.cxx index 09f5a6409616..21b5dede6866 100644 --- a/avmedia/source/win/framegrabber.cxx +++ b/avmedia/source/win/framegrabber.cxx @@ -50,7 +50,7 @@ namespace avmedia::win { FrameGrabber::FrameGrabber( const uno::Reference< lang::XMultiServiceFactory >& rxMgr ) : mxMgr( rxMgr ) { - ::CoInitialize( nullptr ); + ::CoInitializeEx( nullptr, COINIT_APARTMENTTHREADED ); } diff --git a/avmedia/source/win/player.cxx b/avmedia/source/win/player.cxx index 50323bb80725..8e08d9e53b90 100644 --- a/avmedia/source/win/player.cxx +++ b/avmedia/source/win/player.cxx @@ -80,7 +80,7 @@ Player::Player( const uno::Reference< lang::XMultiServiceFactory >& rxMgr ) : mbLooping( false ), mbAddWindow( true ) { - ::CoInitialize( nullptr ); + ::CoInitializeEx( nullptr, COINIT_APARTMENTTHREADED ); } |