void Playtree::delSelected()
{
Iterator it = begin();
- vlc_object_lock( getIntf()->p_sys->p_playlist );
+ playlist_Lock( getIntf()->p_sys->p_playlist );
for( it = begin(); it != end(); it = getNextVisibleItem( it ) )
{
if( (*it).m_selected && !(*it).isReadonly() )
it = getNextVisibleItem( it );
}
}
- vlc_object_unlock( getIntf()->p_sys->p_playlist );
+ playlist_Unlock( getIntf()->p_sys->p_playlist );
}
void Playtree::action( VarTree *pItem )
{
- vlc_object_lock( m_pPlaylist );
+ playlist_Lock( m_pPlaylist );
VarTree::Iterator it;
playlist_item_t *p_item = (playlist_item_t *)pItem->m_pData;
{
playlist_Control( m_pPlaylist, PLAYLIST_VIEWPLAY, pl_Locked, p_parent, p_item );
}
- vlc_object_unlock( m_pPlaylist );
+ playlist_Unlock( m_pPlaylist );
}
void Playtree::onChange()
void Playtree::buildTree()
{
clear();
- vlc_object_lock( m_pPlaylist );
+ playlist_Lock( m_pPlaylist );
i_items_to_append = 0;
buildNode( m_pPlaylist->p_root_category, *this );
- vlc_object_unlock( m_pPlaylist );
+ playlist_Unlock( m_pPlaylist );
// What is it ?
// checkParents( NULL );
}