playlist locking forgotten (causes PL_ASSERT_LOCKED to fail)
authorJoseph Tulou <brezhoneg1@yahoo.fr>
Fri, 20 Feb 2009 23:50:23 +0000 (00:50 +0100)
committerRémi Duraffort <ivoire@videolan.org>
Sat, 21 Feb 2009 19:13:47 +0000 (20:13 +0100)
Signed-off-by: Rémi Duraffort <ivoire@videolan.org>
modules/gui/skins2/vars/playtree.cpp

index 0179f8c..839b928 100644 (file)
@@ -136,7 +136,9 @@ void Playtree::onUpdateItem( int id )
         playlist_item_t* pNode = (playlist_item_t*)(it->m_pData);
         UString *pName = new UString( getIntf(), pNode->p_input->psz_name );
         it->m_cString = UStringPtr( pName );
+        playlist_Lock( m_pPlaylist );
         it->m_playing = playlist_CurrentPlayingItem( m_pPlaylist ) == pNode;
+        playlist_Unlock( m_pPlaylist );
         if( it->m_playing ) descr.b_active_item = true;
     }
     else