}
p_item = playlist_ItemGetByInputId( PL, i_id,
- PL->status.p_node );
+ PL->p_root_category );
if( !p_item )
{
if( did_lock == 1 )
}
playlist_Control( PL, PLAYLIST_VIEWPLAY, pl_Locked,
- PL->status.p_node, p_item );
+ PL->p_root_category, p_item );
if( did_lock == 1 )
{
vlc_object_unlock( PL );
VLC_UNUSED(p_e);
assert( PL );
- if( !PL->status.p_item )
- return -1;
return playlist_CurrentId( PL );
}
{
libvlc_media_player_t *p_mi;
assert( PL );
-
- vlc_object_lock( PL );
- if( PL->p_input )
+ input_thread_t * input = playlist_CurrentInput( PL );
+ if( input )
{
p_mi = libvlc_media_player_new_from_input_thread(
- p_instance, PL->p_input, p_e );
+ p_instance, input, p_e );
+ vlc_object_release( input );
}
else
{
p_mi = NULL;
libvlc_exception_raise( p_e, "No active input" );
}
- vlc_object_unlock( PL );
return p_mi;
}