Commit e3cffc1f authored by Joseph Tulou's avatar Joseph Tulou Committed by Rémi Duraffort

playlist locking forgotten (causes PL_ASSERT_LOCKED to fail)

Signed-off-by: default avatarRémi Duraffort <ivoire@videolan.org>
parent 8df8bef6
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment