Commit bc496caa authored by Erwan Tulou's avatar Erwan Tulou

skins2: cosmetics

parent d878853f
...@@ -95,15 +95,15 @@ void VoutManager::saveVoutConfig( ) ...@@ -95,15 +95,15 @@ void VoutManager::saveVoutConfig( )
vector<SavedWnd>::iterator it; vector<SavedWnd>::iterator it;
for( it = m_SavedWndVec.begin(); it != m_SavedWndVec.end(); ++it ) for( it = m_SavedWndVec.begin(); it != m_SavedWndVec.end(); ++it )
{ {
if( (*it).pCtrlVideo ) if( it->pCtrlVideo )
{ {
// detach vout thread from VideoControl // detach vout thread from VideoControl
(*it).pCtrlVideo->detachVoutWindow( ); it->pCtrlVideo->detachVoutWindow( );
// memorize width/height before VideoControl is destroyed // memorize width/height before VideoControl is destroyed
(*it).width = (*it).pCtrlVideo->getPosition()->getWidth(); it->width = it->pCtrlVideo->getPosition()->getWidth();
(*it).height = (*it).pCtrlVideo->getPosition()->getHeight(); it->height = it->pCtrlVideo->getPosition()->getHeight();
(*it).pCtrlVideo = NULL; it->pCtrlVideo = NULL;
} }
} }
...@@ -128,8 +128,8 @@ void VoutManager::restoreVoutConfig( bool b_success ) ...@@ -128,8 +128,8 @@ void VoutManager::restoreVoutConfig( bool b_success )
CtrlVideo* pCtrlVideo = getBestCtrlVideo(); CtrlVideo* pCtrlVideo = getBestCtrlVideo();
if( pCtrlVideo ) if( pCtrlVideo )
{ {
pCtrlVideo->attachVoutWindow( (*it).pVoutWindow ); pCtrlVideo->attachVoutWindow( it->pVoutWindow );
(*it).pCtrlVideo = pCtrlVideo; it->pCtrlVideo = pCtrlVideo;
} }
} }
} }
...@@ -140,13 +140,13 @@ void VoutManager::discardVout( CtrlVideo* pCtrlVideo ) ...@@ -140,13 +140,13 @@ void VoutManager::discardVout( CtrlVideo* pCtrlVideo )
vector<SavedWnd>::iterator it; vector<SavedWnd>::iterator it;
for( it = m_SavedWndVec.begin(); it != m_SavedWndVec.end(); ++it ) for( it = m_SavedWndVec.begin(); it != m_SavedWndVec.end(); ++it )
{ {
if( (*it).pCtrlVideo == pCtrlVideo ) if( it->pCtrlVideo == pCtrlVideo )
{ {
// detach vout thread from VideoControl // detach vout thread from VideoControl
(*it).pCtrlVideo->detachVoutWindow( ); it->pCtrlVideo->detachVoutWindow( );
(*it).width = (*it).pCtrlVideo->getPosition()->getWidth(); it->width = it->pCtrlVideo->getPosition()->getWidth();
(*it).height = (*it).pCtrlVideo->getPosition()->getHeight(); it->height = it->pCtrlVideo->getPosition()->getHeight();
(*it).pCtrlVideo = NULL; it->pCtrlVideo = NULL;
break; break;
} }
} }
...@@ -158,11 +158,11 @@ void VoutManager::requestVout( CtrlVideo* pCtrlVideo ) ...@@ -158,11 +158,11 @@ void VoutManager::requestVout( CtrlVideo* pCtrlVideo )
vector<SavedWnd>::iterator it; vector<SavedWnd>::iterator it;
for( it = m_SavedWndVec.begin(); it != m_SavedWndVec.end(); ++it ) for( it = m_SavedWndVec.begin(); it != m_SavedWndVec.end(); ++it )
{ {
if( (*it).pCtrlVideo == NULL ) if( it->pCtrlVideo == NULL )
{ {
pCtrlVideo->attachVoutWindow( (*it).pVoutWindow, pCtrlVideo->attachVoutWindow( it->pVoutWindow,
(*it).width, (*it).height ); it->width, it->height );
(*it).pCtrlVideo = pCtrlVideo; it->pCtrlVideo = pCtrlVideo;
break; break;
} }
} }
...@@ -221,7 +221,7 @@ void VoutManager::acceptWnd( vout_window_t* pWnd, int width, int height ) ...@@ -221,7 +221,7 @@ void VoutManager::acceptWnd( vout_window_t* pWnd, int width, int height )
// save vout characteristics // save vout characteristics
m_SavedWndVec.push_back( SavedWnd( pWnd, pVoutWindow, pCtrlVideo ) ); m_SavedWndVec.push_back( SavedWnd( pWnd, pVoutWindow, pCtrlVideo ) );
msg_Dbg( pWnd, "New vout : Ctrl = %p, w x h = %dx%d", msg_Dbg( pWnd, "New vout : Ctrl = %p, w x h = %ix%i",
pCtrlVideo, width, height ); pCtrlVideo, width, height );
} }
...@@ -232,19 +232,19 @@ void VoutManager::releaseWnd( vout_window_t* pWnd ) ...@@ -232,19 +232,19 @@ void VoutManager::releaseWnd( vout_window_t* pWnd )
vector<SavedWnd>::iterator it; vector<SavedWnd>::iterator it;
for( it = m_SavedWndVec.begin(); it != m_SavedWndVec.end(); ++it ) for( it = m_SavedWndVec.begin(); it != m_SavedWndVec.end(); ++it )
{ {
if( (*it).pWnd == pWnd ) if( it->pWnd == pWnd )
{ {
msg_Dbg( getIntf(), "vout released vout=%p, VideoCtrl=%p", msg_Dbg( getIntf(), "vout released vout=%p, VideoCtrl=%p",
pWnd, (*it).pCtrlVideo ); pWnd, it->pCtrlVideo );
// if a video control was being used, detach from it // if a video control was being used, detach from it
if( (*it).pCtrlVideo ) if( it->pCtrlVideo )
{ {
(*it).pCtrlVideo->detachVoutWindow( ); it->pCtrlVideo->detachVoutWindow( );
} }
// remove resources // remove resources
delete (*it).pVoutWindow; delete it->pVoutWindow;
m_SavedWndVec.erase( it ); m_SavedWndVec.erase( it );
break; break;
} }
...@@ -257,15 +257,15 @@ void VoutManager::releaseWnd( vout_window_t* pWnd ) ...@@ -257,15 +257,15 @@ void VoutManager::releaseWnd( vout_window_t* pWnd )
void VoutManager::setSizeWnd( vout_window_t *pWnd, int width, int height ) void VoutManager::setSizeWnd( vout_window_t *pWnd, int width, int height )
{ {
msg_Dbg( pWnd, "setSize (%dx%d) received from vout thread", msg_Dbg( pWnd, "setSize (%ix%i) received from vout thread",
width, height ); width, height );
vector<SavedWnd>::iterator it; vector<SavedWnd>::iterator it;
for( it = m_SavedWndVec.begin(); it != m_SavedWndVec.end(); ++it ) for( it = m_SavedWndVec.begin(); it != m_SavedWndVec.end(); ++it )
{ {
if( (*it).pWnd == pWnd ) if( it->pWnd == pWnd )
{ {
VoutWindow* pVoutWindow = (*it).pVoutWindow; VoutWindow* pVoutWindow = it->pVoutWindow;
pVoutWindow->setOriginalWidth( width ); pVoutWindow->setOriginalWidth( width );
pVoutWindow->setOriginalHeight( height ); pVoutWindow->setOriginalHeight( height );
...@@ -292,7 +292,7 @@ void VoutManager::setFullscreenWnd( vout_window_t *pWnd, bool b_fullscreen ) ...@@ -292,7 +292,7 @@ void VoutManager::setFullscreenWnd( vout_window_t *pWnd, bool b_fullscreen )
vector<SavedWnd>::iterator it; vector<SavedWnd>::iterator it;
for( it = m_SavedWndVec.begin(); it != m_SavedWndVec.end(); ++it ) for( it = m_SavedWndVec.begin(); it != m_SavedWndVec.end(); ++it )
{ {
if( (*it).pWnd == pWnd ) if( it->pWnd == pWnd )
{ {
VoutWindow* pVoutWindow = it->pVoutWindow; VoutWindow* pVoutWindow = it->pVoutWindow;
configureFullscreen( *pVoutWindow ); configureFullscreen( *pVoutWindow );
......
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