Commit 671bf6f8 authored by Erwan Tulou's avatar Erwan Tulou

qt4 and skins2: fix resizing issue when zooming in/out and is_display_filled is enabled

returning VLC_EGENERIC is no problem, since the vout system is an observer of the change in size and will report the real situation.
returning VLC_SUCCESS is wrong in an asynchronous environmenent, as resizing is only performed later on (or not) depending on GUI configuration.
parent 4a080e62
...@@ -890,7 +890,7 @@ int MainInterface::controlVideo( int i_query, va_list args ) ...@@ -890,7 +890,7 @@ int MainInterface::controlVideo( int i_query, va_list args )
unsigned int i_height = va_arg( args, unsigned int ); unsigned int i_height = va_arg( args, unsigned int );
emit askVideoToResize( i_width, i_height ); emit askVideoToResize( i_width, i_height );
emit askUpdate(); emit askUpdate();
return VLC_SUCCESS; return VLC_EGENERIC;
} }
case VOUT_WINDOW_SET_ON_TOP: case VOUT_WINDOW_SET_ON_TOP:
{ {
......
...@@ -358,7 +358,7 @@ int VoutManager::controlWindow( struct vout_window_t *pWnd, ...@@ -358,7 +358,7 @@ int VoutManager::controlWindow( struct vout_window_t *pWnd,
AsyncQueue::instance( pThis->getIntf() ); AsyncQueue::instance( pThis->getIntf() );
pQueue->push( CmdGenericPtr( pCmd ) ); pQueue->push( CmdGenericPtr( pCmd ) );
} }
return VLC_SUCCESS; return VLC_EGENERIC;
} }
case VOUT_WINDOW_SET_FULLSCREEN: case VOUT_WINDOW_SET_FULLSCREEN:
......
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