[vlc-devel] [PATCH 1/2] qt: fix crash after recent playlist changes

Steve Lhomme robux4 at videolabs.io
Mon May 15 08:45:29 CEST 2017


---
 modules/gui/qt/components/playlist/playlist_model.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/gui/qt/components/playlist/playlist_model.cpp b/modules/gui/qt/components/playlist/playlist_model.cpp
index 94ee4f2f39..fc14a7d2bd 100644
--- a/modules/gui/qt/components/playlist/playlist_model.cpp
+++ b/modules/gui/qt/components/playlist/playlist_model.cpp
@@ -721,7 +721,8 @@ void PLModel::removeItem( PLItem *item )
 void PLModel::updateChildren( PLItem *root )
 {
     playlist_item_t *p_node = playlist_ItemGetById( p_playlist, root->id() );
-    updateChildren( p_node, root );
+    if (p_node)
+        updateChildren( p_node, root );
 }
 
 /* This function must be entered WITH the playlist lock */
-- 
2.12.1



More information about the vlc-devel mailing list