[vlc-devel] commit: qt4: lock playlist littlebit later (Ilkka Ollakka )
git version control
git at videolan.org
Tue Aug 18 17:07:14 CEST 2009
vlc | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Tue Aug 18 18:05:24 2009 +0300| [50563b1bafe2625c9608a13aed8f0a7db89b7fb7] | committer: Ilkka Ollakka
qt4: lock playlist littlebit later
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=50563b1bafe2625c9608a13aed8f0a7db89b7fb7
---
.../gui/qt4/components/playlist/playlist_model.cpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules/gui/qt4/components/playlist/playlist_model.cpp b/modules/gui/qt4/components/playlist/playlist_model.cpp
index f95a1ac..7fc6fe8 100644
--- a/modules/gui/qt4/components/playlist/playlist_model.cpp
+++ b/modules/gui/qt4/components/playlist/playlist_model.cpp
@@ -943,10 +943,10 @@ void PLModel::search( const QString& search_text )
/*********** Popup *********/
void PLModel::popup( QModelIndex & index, QPoint &point, QModelIndexList list )
{
- PL_LOCK;
int i_id;
if( index.isValid() ) i_id = itemId( index );
else i_id = rootItem->i_id;
+ PL_LOCK;
playlist_item_t *p_item = playlist_ItemGetById( p_playlist, i_id );
if( p_item )
{
More information about the vlc-devel
mailing list