]> git.sesse.net Git - vlc/commitdiff
Qt: getVout() avoid a crash.
authorJean-Baptiste Kempf <jb@videolan.org>
Mon, 19 Jan 2009 12:29:51 +0000 (13:29 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Mon, 19 Jan 2009 12:29:51 +0000 (13:29 +0100)
modules/gui/qt4/input_manager.hpp

index a55c3fd149074a64edb1ff2f72273194d153a2ca..ec6d6f5421115795170174f5d4343a18c07d0a8b 100644 (file)
@@ -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];