Commit d8d97ccb 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>
(cherry picked from commit fc28b6408283f55819beb36749dfe7abf7611e20)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 6965ca72
......@@ -177,6 +177,13 @@ void VideoWidget::SetSizing( unsigned int w, unsigned int h )
if( !isVisible() ) show();
resize( 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();
}
......
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