Commit 8b70a12e 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>
parent f459c271
......@@ -222,16 +222,19 @@ void CtrlVideo::detachVoutWindow( )
void CtrlVideo::resizeInnerVout( )
{
WindowManager &rWindowManager =
getIntf()->p_sys->p_theme->getWindowManager();
TopWindow* pWin = getWindow();
if( m_pVoutWindow )
{
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->move( pPos->getLeft(), pPos->getTop() );
m_pVoutWindow->resize( pPos->getWidth(), pPos->getHeight() );
m_pVoutWindow->move( pPos->getLeft(), pPos->getTop() );
rWindowManager.show( *pWin );
m_pVoutWindow->show();
rWindowManager.show( *pWin );
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