From: RĂ©mi Duraffort Date: Fri, 18 Jul 2008 17:04:12 +0000 (+0200) Subject: Lock the playlist so we can add SAP item to the playlist without asserting. X-Git-Tag: 0.9.0-test3~389 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=99f299c6c6c0f460edd6bbae5f4a29a991c6f9dc;p=vlc Lock the playlist so we can add SAP item to the playlist without asserting. --- 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 ); }