]> git.sesse.net Git - vlc/commitdiff
Lock the playlist so we can add SAP item to the playlist without asserting.
authorRémi Duraffort <ivoire@videolan.org>
Fri, 18 Jul 2008 17:04:12 +0000 (19:04 +0200)
committerRémi Duraffort <ivoire@videolan.org>
Fri, 18 Jul 2008 17:04:58 +0000 (19:04 +0200)
modules/gui/qt4/components/playlist/standardpanel.cpp

index b8aa3000178a08afe03d582951ff308c0adc9342..f268d645a8d6730be1f9d514cd697948a44acc3a 100644 (file)
@@ -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 );
 }