]> git.sesse.net Git - vlc/commitdiff
Fix a segfault in Skins2 interface.
authorJean-Baptiste Kempf <jb@videolan.org>
Fri, 8 Aug 2008 21:02:37 +0000 (14:02 -0700)
committerJean-Baptiste Kempf <jb@videolan.org>
Fri, 8 Aug 2008 21:02:37 +0000 (14:02 -0700)
modules/gui/qt4/input_manager.cpp

index c12db37ef4a94c57278070b9ec24f260cf9f24d9..b6463b35fc842315cd32e37fc1778858d673ebb0 100644 (file)
@@ -647,8 +647,11 @@ void MainInputManager::customEvent( QEvent *event )
         /* we are working as a dialogs provider */
         playlist_t *p_playlist = pl_Yield( p_intf );
         p_input = playlist_CurrentInput( p_playlist );
-        emit inputChanged( p_input );
-        vlc_object_release( p_input );
+        if( p_input )
+        {
+            emit inputChanged( p_input );
+            vlc_object_release( p_input );
+        }
         pl_Release( p_intf );
     }
 }