[vlc-commits] qt: controller: Only react to external fullscreen changes

Hugo Beauzée-Luyssen git at videolan.org
Tue Dec 27 19:07:37 CET 2016


vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Tue Dec 27 19:02:34 2016 +0100| [ba9689033cd471536efb0d030e08f4f13beb6bdb] | committer: Hugo Beauzée-Luyssen

qt: controller: Only react to external fullscreen changes

And assume the playlist's "fullscreen" variable to be the reference
value.
Fix #17054

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ba9689033cd471536efb0d030e08f4f13beb6bdb
---

 modules/gui/qt/components/controller.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/gui/qt/components/controller.cpp b/modules/gui/qt/components/controller.cpp
index 0d2f49a..2e80c09 100644
--- a/modules/gui/qt/components/controller.cpp
+++ b/modules/gui/qt/components/controller.cpp
@@ -1119,6 +1119,7 @@ static int FullscreenControllerWidgetFullscreenChanged( vlc_object_t *obj,
     FullscreenControllerWidget *p_fs = (FullscreenControllerWidget *)data;
 
     p_fs->fullscreenChanged( p_vout, new_val.b_bool, var_GetInteger( p_vout, "mouse-hide-timeout" ) );
+    p_fs->emit fullscreenChanged( new_val.b_bool );
 
     return VLC_SUCCESS;
 }
@@ -1188,7 +1189,7 @@ void FullscreenControllerWidget::setVoutList( vout_thread_t **pp_vout, int i_vou
         var_AddCallback( p_vout, "fullscreen",
                          FullscreenControllerWidgetFullscreenChanged, this );
         /* I miss a add and fire */
-        fullscreenChanged( p_vout, var_GetBool( p_vout, "fullscreen" ),
+        fullscreenChanged( p_vout, var_GetBool( THEPL, "fullscreen" ),
                            var_GetInteger( p_vout, "mouse-hide-timeout" ) );
         vlc_mutex_unlock( &lock );
     }
@@ -1224,7 +1225,6 @@ void FullscreenControllerWidget::fullscreenChanged( vout_thread_t *p_vout,
         IMEvent *eHide = new IMEvent( IMEvent::FullscreenControlHide, 0 );
         QApplication::postEvent( this, eHide );
     }
-    emit fullscreenChanged( b_fullscreen );
     vlc_mutex_unlock( &lock );
 }
 



More information about the vlc-commits mailing list