[vlc-devel] commit: Lock the playlist so we can add SAP item to the playlist without asserting . ( Rémi Duraffort )

git version control git at videolan.org
Fri Jul 18 19:05:23 CEST 2008


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Fri Jul 18 19:04:12 2008 +0200| [99f299c6c6c0f460edd6bbae5f4a29a991c6f9dc]

Lock the playlist so we can add SAP item to the playlist without asserting.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=99f299c6c6c0f460edd6bbae5f4a29a991c6f9dc
---

 .../gui/qt4/components/playlist/standardpanel.cpp  |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/modules/gui/qt4/components/playlist/standardpanel.cpp b/modules/gui/qt4/components/playlist/standardpanel.cpp
index b8aa300..f268d64 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 );
 }
 




More information about the vlc-devel mailing list