[vlc-commits] gui/qt: use vlc_playlist_locker in MessagesDialog::updatePLTree

Filip Roséen git at videolan.org
Wed Jul 20 16:15:56 CEST 2016


vlc | branch: master | Filip Roséen <filip at videolabs.io> | Wed Jul 20 04:37:05 2016 +0200| [9ba0576861778fe94b286a0cc61145f3924bb8f0] | committer: Jean-Baptiste Kempf

gui/qt: use vlc_playlist_locker in MessagesDialog::updatePLTree

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 modules/gui/qt/dialogs/messages.cpp |    9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/modules/gui/qt/dialogs/messages.cpp b/modules/gui/qt/dialogs/messages.cpp
index ddf9f75..59f5607 100644
--- a/modules/gui/qt/dialogs/messages.cpp
+++ b/modules/gui/qt/dialogs/messages.cpp
@@ -375,9 +375,12 @@ void MessagesDialog::updatePLTree()
 {
     playlist_t *p_playlist = THEPL;
     pldebugTree->clear();
-    PL_LOCK;
-    pldebugTree->addTopLevelItem( PLWalk( p_playlist->p_root_category ) );
-    PL_UNLOCK;
+
+    {
+        vlc_playlist_locker pl_lock ( THEPL );
+        pldebugTree->addTopLevelItem( PLWalk( p_playlist->p_root_category ) );
+    }
+
     pldebugTree->expandAll();
     for ( int i=0; i< 5; i++ )
         pldebugTree->resizeColumnToContents( i );



More information about the vlc-commits mailing list