Commit fc28b640 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt: keep the video centered when the vout resizes twice to the same size

Close #3621
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 440435ae
...@@ -177,6 +177,13 @@ void VideoWidget::SetSizing( unsigned int w, unsigned int h ) ...@@ -177,6 +177,13 @@ void VideoWidget::SetSizing( unsigned int w, unsigned int h )
if( !isVisible() ) show(); 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
twice to the same size and would make the vout not centered.
This cause a small flicker.
See #3621
*/
if( size().width() == w && size().height() == h )
updateGeometry();
videoSync(); videoSync();
} }
......
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