[vlc-devel] commit: Fix a segfault in Skins2 interface. (Jean-Baptiste Kempf )

git version control git at videolan.org
Fri Aug 8 23:24:10 CEST 2008


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Fri Aug  8 14:02:37 2008 -0700| [fe512faf08da39e08cf9f9429020c3ff7233f140] | committer: Jean-Baptiste Kempf 

Fix a segfault in Skins2 interface.

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

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

diff --git a/modules/gui/qt4/input_manager.cpp b/modules/gui/qt4/input_manager.cpp
index c12db37..b6463b3 100644
--- a/modules/gui/qt4/input_manager.cpp
+++ b/modules/gui/qt4/input_manager.cpp
@@ -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 );
     }
 }




More information about the vlc-devel mailing list