vlc_linux/vlc-3.0.16/modules/gui/qt/components/playlist/playlist_model.cpp
/* Convenient overloaded private version of activateItem
 * Must be entered with PL lock */
Convenient overloaded private version of activateItem
Must be entered with PL lock
Convenient overloaded private version of activateItem Must be entered with PL lock
void PLModel::activateItem( playlist_item_t *p_item )
{
    if( !p_item ) return;
    playlist_item_t *p_parent = p_item;
    while( p_parent )
    {
        if( p_parent->i_id == rootItem->id() ) break;
        p_parent = p_parent->p_parent;
    }
    if( p_parent )
        playlist_ViewPlay( p_playlist, p_parent, p_item );
}
void PLModel :: activateItem ( playlist_item_t * p_item ) { if ( ! p_item ) return ; playlist_item_t * p_parent = p_item ; while ( p_parent ) { if ( p_parent -> i_id == rootItem -> id ( ) ) break ; p_parent = p_parent -> p_parent ; } if ( p_parent ) playlist_ViewPlay ( p_playlist , p_parent , p_item ) ; }
Convenient overloaded private version of activateItem
 Must be entered with PL lock
Convenient overloaded private version of activateItem Must be entered with PL lock