Commit 1bbd0eb5 authored by Romain Vimont's avatar Romain Vimont Committed by Hugo Beauzée-Luyssen

qt: initialize FSC fullscreen state from the vout

The playlist and vout "fullscreen" variables may contain different
values, e.g. when fullscreen is toggled during vout creation.

On vout list changes, initialize the FSC fullscreen state from the vout,
so that the FSC state is consistent with the video state.

Fixes #19697
Signed-off-by: default avatarHugo Beauzée-Luyssen <hugo@beauzee.fr>
parent a8ed2d9f
...@@ -1210,7 +1210,7 @@ void FullscreenControllerWidget::setVoutList( vout_thread_t **pp_vout, int i_vou ...@@ -1210,7 +1210,7 @@ void FullscreenControllerWidget::setVoutList( vout_thread_t **pp_vout, int i_vou
var_AddCallback( p_vout, "fullscreen", var_AddCallback( p_vout, "fullscreen",
FullscreenControllerWidget::FullscreenChanged, this ); FullscreenControllerWidget::FullscreenChanged, this );
/* I miss a add and fire */ /* I miss a add and fire */
emit fullscreenChanged( p_vout, var_InheritBool( THEPL, "fullscreen" ), emit fullscreenChanged( p_vout, var_InheritBool( p_vout, "fullscreen" ),
var_GetInteger( p_vout, "mouse-hide-timeout" ) ); var_GetInteger( p_vout, "mouse-hide-timeout" ) );
vlc_mutex_unlock( &lock ); vlc_mutex_unlock( &lock );
} }
......
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