vlc | branch: master | Rémi Denis-Courmont <[email protected]> | Wed Jul  4 
17:19:45 2012 +0300| [2d758db4e57c21cc93605c9731fa2dcc29c13806] | committer: 
Rémi Denis-Courmont

Qt4: fix crashes without podcasts

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

 modules/gui/qt4/components/playlist/selector.cpp |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/modules/gui/qt4/components/playlist/selector.cpp 
b/modules/gui/qt4/components/playlist/selector.cpp
index 64831a1..b207b07 100644
--- a/modules/gui/qt4/components/playlist/selector.cpp
+++ b/modules/gui/qt4/components/playlist/selector.cpp
@@ -424,7 +424,7 @@ void PLSelector::dragMoveEvent ( QDragMoveEvent * event )
 
 void PLSelector::plItemAdded( int item, int parent )
 {
-    if( parent != podcastsParentId ) return;
+    if( parent != podcastsParentId || podcastsParent == NULL ) return;
 
     playlist_Lock( THEPL );
 
@@ -473,6 +473,9 @@ void PLSelector::plItemRemoved( int id )
 
 void PLSelector::inputItemUpdate( input_item_t *arg )
 {
+    if( podcastsParent == NULL )
+        return;
+
     int c = podcastsParent->childCount();
     for( int i = 0; i < c; i++ )
     {

_______________________________________________
vlc-commits mailing list
[email protected]
http://mailman.videolan.org/listinfo/vlc-commits

Reply via email to