diff options
Diffstat (limited to 'avmedia/source/opengl/oglplayer.cxx')
-rw-r--r-- | avmedia/source/opengl/oglplayer.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/avmedia/source/opengl/oglplayer.cxx b/avmedia/source/opengl/oglplayer.cxx index f37735af1c1c..8137b96897eb 100644 --- a/avmedia/source/opengl/oglplayer.cxx +++ b/avmedia/source/opengl/oglplayer.cxx @@ -242,6 +242,7 @@ uno::Reference< media::XPlayerWindow > SAL_CALL OGLPlayer::createPlayerWindow( c SAL_WARN("avmedia.opengl", "Failed to get the SystemChildWindow for rendering!"); return uno::Reference< media::XPlayerWindow >(); } + assert(pChildWindow->GetParent()); if( !m_aContext.init(pChildWindow) ) { @@ -264,7 +265,7 @@ uno::Reference< media::XPlayerWindow > SAL_CALL OGLPlayer::createPlayerWindow( c SAL_WARN("avmedia.opengl", "Error occured while parsing *.json file! Error code: " << nRet); return uno::Reference< media::XPlayerWindow >(); } - m_pOGLWindow = new OGLWindow(m_pHandle, &m_aContext, pChildWindow); + m_pOGLWindow = new OGLWindow(*m_pHandle, m_aContext, *pChildWindow->GetParent()); return uno::Reference< media::XPlayerWindow >( m_pOGLWindow ); } |