[vlc-devel] [PATCH 3/4] qt4: input_manager: check if input is available before use

Hannes Domani ssbssa at yahoo.de
Tue Feb 23 20:13:53 CET 2016


---
 modules/gui/qt4/input_manager.hpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/gui/qt4/input_manager.hpp b/modules/gui/qt4/input_manager.hpp
index 57dfd4d..e3d0c44 100644
--- a/modules/gui/qt4/input_manager.hpp
+++ b/modules/gui/qt4/input_manager.hpp
@@ -270,7 +270,7 @@ public:
     bool getPlayExitState();
     bool hasEmptyPlaylist();
 
-    void requestVoutUpdate() { return im->UpdateVout(); }
+    void requestVoutUpdate() { if( im->hasInput() ) im->UpdateVout(); }
     // Probe for initial input. Doing this from the constructor would cause
     // the getInstance to call itself recursively from the inputChangedHandler
     void probeCurrentInput();
-- 
2.7.0



More information about the vlc-devel mailing list