[vlc-devel] [PATCH] qt: add a const on the playback state getter

Steve Lhomme robux4 at videolabs.io
Tue Mar 29 10:26:53 CEST 2016


---
 modules/gui/qt/input_manager.cpp | 2 +-
 modules/gui/qt/input_manager.hpp | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/gui/qt/input_manager.cpp b/modules/gui/qt/input_manager.cpp
index 996b286..da3d781 100644
--- a/modules/gui/qt/input_manager.cpp
+++ b/modules/gui/qt/input_manager.cpp
@@ -535,7 +535,7 @@ void InputManager::UpdateName()
     }
 }
 
-int InputManager::playingStatus()
+int InputManager::playingStatus() const
 {
     return i_old_playing_status;
 }
diff --git a/modules/gui/qt/input_manager.hpp b/modules/gui/qt/input_manager.hpp
index 3d7e613..8972729 100644
--- a/modules/gui/qt/input_manager.hpp
+++ b/modules/gui/qt/input_manager.hpp
@@ -132,7 +132,7 @@ public:
     void delInput();
     bool hasInput() const { return p_input != NULL; }
 
-    int playingStatus();
+    int playingStatus() const;
     bool hasAudio();
     bool hasVideo() { return hasInput() && b_video; }
     bool hasVisualisation();
-- 
2.7.0



More information about the vlc-devel mailing list