[vlc-commits] gui/qt: use vlc_playlist_locker in PLModel::renameNode
Filip Roséen
git at videolan.org
Wed Jul 20 16:15:55 CEST 2016
vlc | branch: master | Filip Roséen <filip at videolabs.io> | Wed Jul 20 04:37:02 2016 +0200| [32802dd5a29d9b539b15a644924ae4c2906351ab] | committer: Jean-Baptiste Kempf
gui/qt: use vlc_playlist_locker in PLModel::renameNode
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=32802dd5a29d9b539b15a644924ae4c2906351ab
---
modules/gui/qt/components/playlist/playlist_model.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/gui/qt/components/playlist/playlist_model.cpp b/modules/gui/qt/components/playlist/playlist_model.cpp
index 7fd669f..0366ac2 100644
--- a/modules/gui/qt/components/playlist/playlist_model.cpp
+++ b/modules/gui/qt/components/playlist/playlist_model.cpp
@@ -901,13 +901,13 @@ void PLModel::renameNode( QModelIndex index, QString name )
{
if( name.isEmpty() || !index.isValid() ) return;
- PL_LOCK;
+ vlc_playlist_locker pl_lock ( THEPL );
+
if ( !index.isValid() ) index = rootIndex();
input_item_t* p_input = this->getInputItem( index );
input_item_SetName( p_input, qtu( name ) );
playlist_t *p_playlist = THEPL;
input_item_WriteMeta( VLC_OBJECT(p_playlist), p_input );
- PL_UNLOCK;
}
bool PLModel::action( QAction *action, const QModelIndexList &indexes )
More information about the vlc-commits
mailing list