[vlc-commits] Qt: initialise m_fullscreen in the Qt player controller
Erwan Tulou
git at videolan.org
Fri Nov 29 14:34:00 CET 2019
vlc | branch: master | Erwan Tulou <erwan10 at videolan.org> | Fri Nov 29 00:46:35 2019 +0100| [ed30b0c34578cfcbff68faddf49f3981d6df6be2] | committer: Erwan Tulou
Qt: initialise m_fullscreen in the Qt player controller
maintaining the Qt player controller fully in synch with the vlc player
is key to providing a correct popupmenu.
For instance, this fixes 'vlc -I skins --fullscreen' where the popupmenu
was out of synch with the current mode.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ed30b0c34578cfcbff68faddf49f3981d6df6be2
---
modules/gui/qt/components/player_controller.cpp | 3 +++
1 file changed, 3 insertions(+)
diff --git a/modules/gui/qt/components/player_controller.cpp b/modules/gui/qt/components/player_controller.cpp
index 1b3b0d820a..164fd5f3d1 100644
--- a/modules/gui/qt/components/player_controller.cpp
+++ b/modules/gui/qt/components/player_controller.cpp
@@ -1001,6 +1001,9 @@ PlayerControllerPrivate::PlayerControllerPrivate(PlayerController *playercontrol
m_time_timer.setSingleShot( true );
m_time_timer.setTimerType( Qt::PreciseTimer );
+
+ // Initialise fullscreen to match the player state
+ m_fullscreen = vlc_player_vout_IsFullscreen( m_player );
}
PlayerController::PlayerController( intf_thread_t *_p_intf )
More information about the vlc-commits
mailing list