Commit 646aab6e authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt: videoWidget shouldn't be show/hide(), the parent stackWidget should toggle.

(cherry picked from commit 8a0bd27b)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 192f4399
...@@ -74,6 +74,7 @@ VideoWidget::VideoWidget( intf_thread_t *_p_i ) ...@@ -74,6 +74,7 @@ VideoWidget::VideoWidget( intf_thread_t *_p_i )
layout->setContentsMargins( 0, 0, 0, 0 ); layout->setContentsMargins( 0, 0, 0, 0 );
setLayout( layout ); setLayout( layout );
stable = NULL; stable = NULL;
show();
} }
VideoWidget::~VideoWidget() VideoWidget::~VideoWidget()
...@@ -156,7 +157,6 @@ WId VideoWidget::request( int *pi_x, int *pi_y, ...@@ -156,7 +157,6 @@ WId VideoWidget::request( int *pi_x, int *pi_y,
Parent has to care about resizing itself */ Parent has to care about resizing itself */
void VideoWidget::SetSizing( unsigned int w, unsigned int h ) void VideoWidget::SetSizing( unsigned int w, unsigned int h )
{ {
if( !isVisible() ) show();
resize( w, h ); resize( w, h );
emit sizeChanged( w, h ); emit sizeChanged( w, h );
/* Work-around a bug?misconception? that would happen when vout core resize /* Work-around a bug?misconception? that would happen when vout core resize
...@@ -179,7 +179,6 @@ void VideoWidget::release( void ) ...@@ -179,7 +179,6 @@ void VideoWidget::release( void )
stable = NULL; stable = NULL;
updateGeometry(); updateGeometry();
hide();
} }
/********************************************************************** /**********************************************************************
......
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