vlc | branch: master | Filip Roséen <[email protected]> | Wed Jul 20 04:36:54 
2016 +0200| [30a0e18aabafb5ea4fab8bf374b4e330581b3c65] | committer: 
Jean-Baptiste Kempf

gui/qt: use vlc_playlist_locker in PLModel::flags

Signed-off-by: Jean-Baptiste Kempf <[email protected]>

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

 modules/gui/qt/components/playlist/playlist_model.cpp |    6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/modules/gui/qt/components/playlist/playlist_model.cpp 
b/modules/gui/qt/components/playlist/playlist_model.cpp
index e9f0c52..b4bcd6d 100644
--- a/modules/gui/qt/components/playlist/playlist_model.cpp
+++ b/modules/gui/qt/components/playlist/playlist_model.cpp
@@ -85,15 +85,13 @@ Qt::ItemFlags PLModel::flags( const QModelIndex &index ) 
const
 
     if( canEdit() )
     {
-        PL_LOCK;
+        vlc_playlist_locker pl_lock ( THEPL );
+
         playlist_item_t *plItem =
             playlist_ItemGetById( p_playlist, item->i_playlist_id );
 
         if ( plItem && ( plItem->i_children > -1 ) )
             flags |= Qt::ItemIsDropEnabled;
-
-        PL_UNLOCK;
-
     }
     flags |= Qt::ItemIsDragEnabled;
 

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to