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 c12db37..b6463b3 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 );
     }
 }