[vlc-commits] [Git][videolan/vlc][master] qt: custom-menus: add lock guards to player accessor

Pierre Lamot (@chub) gitlab at videolan.org
Fri Sep 24 08:52:32 UTC 2021



Pierre Lamot pushed to branch master at VideoLAN / VLC


Commits:
b6407a66 by Alaric Senat at 2021-09-24T07:44:11+00:00
qt: custom-menus: add lock guards to player accessor

Fix a regression introduced by ec78dfa64e0c3942fa8f82fa9ebfa26de8acdbf9
where the lock was forgotten.

- - - - -


1 changed file:

- modules/gui/qt/menus/custom_menus.cpp


Changes:

=====================================
modules/gui/qt/menus/custom_menus.cpp
=====================================
@@ -74,8 +74,10 @@ RendererMenu::RendererMenu( QMenu *parent, qt_intf_t *p_intf_ )
     addAction( action );
     group->addAction(action);
 
+    vlc_player_Lock( p_intf_->p_player );
     if ( vlc_player_GetRenderer( p_intf->p_player ) == nullptr )
         action->setChecked( true );
+    vlc_player_Unlock( p_intf_->p_player );
 
     addSeparator();
 



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/b6407a66893305f9442f5df29f0283448b38e0a8

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/b6407a66893305f9442f5df29f0283448b38e0a8
You're receiving this email because of your account on code.videolan.org.




More information about the vlc-commits mailing list