From 99f299c6c6c0f460edd6bbae5f4a29a991c6f9dc Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Duraffort?= Date: Fri, 18 Jul 2008 19:04:12 +0200 Subject: [PATCH] Lock the playlist so we can add SAP item to the playlist without asserting. --- modules/gui/qt4/components/playlist/standardpanel.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/gui/qt4/components/playlist/standardpanel.cpp b/modules/gui/qt4/components/playlist/standardpanel.cpp index b8aa300017..f268d645a8 100644 --- a/modules/gui/qt4/components/playlist/standardpanel.cpp +++ b/modules/gui/qt4/components/playlist/standardpanel.cpp @@ -315,11 +315,14 @@ void StandardPLPanel::doPopup( QModelIndex index, QPoint point ) /* This activated by the selector selection */ void StandardPLPanel::setRoot( int i_root_id ) { + QPL_LOCK; playlist_item_t *p_item = playlist_ItemGetById( THEPL, i_root_id, true ); assert( p_item ); p_item = playlist_GetPreferredNode( THEPL, p_item ); assert( p_item ); + QPL_UNLOCK; + model->rebuild( p_item ); } -- 2.39.2