[vlc-devel] [PATCH 14/18] gui/qt: use vlc_playlist_locker in PLModel::activateItem
Filip Roséen
filip at videolabs.io
Wed Jul 20 04:37:04 CEST 2016
---
modules/gui/qt/components/playlist/playlist_model.cpp | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/modules/gui/qt/components/playlist/playlist_model.cpp b/modules/gui/qt/components/playlist/playlist_model.cpp
index 0a081f0..3f03209 100644
--- a/modules/gui/qt/components/playlist/playlist_model.cpp
+++ b/modules/gui/qt/components/playlist/playlist_model.cpp
@@ -266,10 +266,11 @@ void PLModel::activateItem( const QModelIndex &index )
assert( index.isValid() );
const PLItem *item = getItem( index );
assert( item );
- PL_LOCK;
+
+ vlc_playlist_locker pl_lock( THEPL );
+
playlist_item_t *p_item = playlist_ItemGetById( p_playlist, item->i_playlist_id );
activateItem( p_item );
- PL_UNLOCK;
}
/* Convenient overloaded private version of activateItem
--
2.9.0
More information about the vlc-devel
mailing list