[vlc-devel] commit: Qt4: We must lock the playlist before calling UpdateTreeItem() ( Rémi Duraffort )

git version control git at videolan.org
Sat Jul 19 12:48:20 CEST 2008


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Sat Jul 19 12:49:37 2008 +0200| [3734ddc989adbde820ede4eb256edcb9410dc577]

Qt4: We must lock the playlist before calling UpdateTreeItem()

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

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

diff --git a/modules/gui/qt4/components/playlist/playlist_model.cpp b/modules/gui/qt4/components/playlist/playlist_model.cpp
index 2ec2458..fa8a3cf 100644
--- a/modules/gui/qt4/components/playlist/playlist_model.cpp
+++ b/modules/gui/qt4/components/playlist/playlist_model.cpp
@@ -523,7 +523,11 @@ void PLModel::ProcessInputItemUpdate( int i_input_id )
     if( i_input_id <= 0 ) return;
     PLItem *item = FindByInput( rootItem, i_input_id );
     if( item )
+    {
+        QPL_LOCK;
         UpdateTreeItem( item, true );
+        QPL_UNLOCK;
+    }
 }
 
 void PLModel::ProcessItemRemoval( int i_id )




More information about the vlc-devel mailing list