[vlc-devel] [PATCH 3.0] qt: fix changing rate (coarse) does not display OSD messages

Pierre Lamot pierre at videolabs.io
Mon Oct 19 10:07:38 CEST 2020


  Changing the player ratet through the hotkeys does display the rate on OSD
  whereas changing directly the rate in the player doesn't.
---
 modules/gui/qt/input_manager.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/gui/qt/input_manager.cpp b/modules/gui/qt/input_manager.cpp
index ede449141f..5aee413ff4 100644
--- a/modules/gui/qt/input_manager.cpp
+++ b/modules/gui/qt/input_manager.cpp
@@ -894,12 +894,12 @@ void InputManager::reverse()
 
 void InputManager::slower()
 {
-    var_TriggerCallback( THEPL, "rate-slower" );
+    var_SetInteger( p_intf->obj.libvlc, "key-action", ACTIONID_SLOWER );
 }
 
 void InputManager::faster()
 {
-    var_TriggerCallback( THEPL, "rate-faster" );
+    var_SetInteger( p_intf->obj.libvlc, "key-action", ACTIONID_FASTER );
 }
 
 void InputManager::littlefaster()
-- 
2.25.1



More information about the vlc-devel mailing list