Commit acfeac92 authored by Erwan Tulou's avatar Erwan Tulou Committed by Rémi Denis-Courmont

skins2: correct crashes when using zoom and multiple video tags

Fixes #2821
Signed-off-by: default avatarRémi Denis-Courmont <remi@remlab.net>
(cherry picked from commit 8b70a12e)
parent 7a0e94a2
...@@ -222,16 +222,19 @@ void CtrlVideo::detachVoutWindow( ) ...@@ -222,16 +222,19 @@ void CtrlVideo::detachVoutWindow( )
void CtrlVideo::resizeInnerVout( ) void CtrlVideo::resizeInnerVout( )
{ {
WindowManager &rWindowManager = if( m_pVoutWindow )
getIntf()->p_sys->p_theme->getWindowManager(); {
TopWindow* pWin = getWindow(); WindowManager &rWindowManager =
getIntf()->p_sys->p_theme->getWindowManager();
TopWindow* pWin = getWindow();
const Position *pPos = getPosition(); const Position *pPos = getPosition();
m_pVoutWindow->resize( pPos->getWidth(), pPos->getHeight() ); m_pVoutWindow->resize( pPos->getWidth(), pPos->getHeight() );
m_pVoutWindow->move( pPos->getLeft(), pPos->getTop() ); m_pVoutWindow->move( pPos->getLeft(), pPos->getTop() );
rWindowManager.show( *pWin ); rWindowManager.show( *pWin );
m_pVoutWindow->show(); m_pVoutWindow->show();
}
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment