[vlc-commits] Qt4: fix crashes without podcasts
Rémi Denis-Courmont
git at videolan.org
Wed Jul 4 16:19:57 CEST 2012
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | 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++ )
{
More information about the vlc-commits
mailing list