[vlc-devel] commit: Qt: getVout() avoid a crash. (Jean-Baptiste Kempf )

git version control git at videolan.org
Mon Jan 19 13:35:59 CET 2009


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Mon Jan 19 13:29:51 2009 +0100| [56d5598837ffbdcfc68661f5d2ffc7897abf09b1] | committer: Jean-Baptiste Kempf 

Qt: getVout() avoid a crash.

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

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

diff --git a/modules/gui/qt4/input_manager.hpp b/modules/gui/qt4/input_manager.hpp
index a55c3fd..ec6d6f5 100644
--- a/modules/gui/qt4/input_manager.hpp
+++ b/modules/gui/qt4/input_manager.hpp
@@ -210,7 +210,7 @@ public:
     vout_thread_t * getVout()
     {
         vout_thread_t **pp_vout; int i_vout;
-        if( !input_Control( p_input, INPUT_GET_VOUTS, &pp_vout, &i_vout ) )
+        if( p_input && !input_Control( p_input, INPUT_GET_VOUTS, &pp_vout, &i_vout ) )
         {
             for( int i = 1; i < i_vout; i++ ) vlc_object_release( pp_vout[i]);
             vout_thread_t *p_tmp = pp_vout[0];




More information about the vlc-devel mailing list