diff options
author | Noel Grandin <noel@peralex.com> | 2020-07-08 16:02:42 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-07-08 20:26:46 +0200 |
commit | 8876a037a657ec61d29c2951ae910a2e56e16840 (patch) | |
tree | ffd159245f40c91d8c406f4c1f2c222abf218bce /avmedia/source/win/player.cxx | |
parent | f4fc5dc31eeb728777104c9ece2788bcc4bdea89 (diff) |
avmedia/win: create instances with uno constructors
See tdf#74608 for motivation
Change-Id: I3a4afa5e583ad5b6339d4cf0036e1dc562274864
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98379
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'avmedia/source/win/player.cxx')
-rw-r--r-- | avmedia/source/win/player.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/avmedia/source/win/player.cxx b/avmedia/source/win/player.cxx index 8e08d9e53b90..b3e621cbc56d 100644 --- a/avmedia/source/win/player.cxx +++ b/avmedia/source/win/player.cxx @@ -61,9 +61,8 @@ static LRESULT CALLBACK MediaPlayerWndProc_2( HWND hWnd,UINT nMsg, WPARAM nPar1, } -Player::Player( const uno::Reference< lang::XMultiServiceFactory >& rxMgr ) : +Player::Player() : Player_BASE(m_aMutex), - mxMgr( rxMgr ), mpGB( nullptr ), mpOMF( nullptr ), mpMC( nullptr ), @@ -410,7 +409,7 @@ uno::Reference< ::media::XPlayerWindow > SAL_CALL Player::createPlayerWindow( co if( mpVW && aSize.Width > 0 && aSize.Height > 0 ) { - ::avmedia::win::Window* pWindow = new ::avmedia::win::Window( mxMgr, *this ); + ::avmedia::win::Window* pWindow = new ::avmedia::win::Window( *this ); xRet = pWindow; @@ -428,7 +427,7 @@ uno::Reference< media::XFrameGrabber > SAL_CALL Player::createFrameGrabber( ) if( !maURL.isEmpty() ) { - FrameGrabber* pGrabber = new FrameGrabber( mxMgr ); + FrameGrabber* pGrabber = new FrameGrabber(); xRet = pGrabber; |