- playlist_LockControl( PL, PLAYLIST_VIEWPLAY,
- PL->status.p_node, p_item );
+ p_item = playlist_ItemGetByInputId( PL, i_id,
+ PL->status.p_node );
+ if( !p_item )
+ {
+ if( did_lock == 1 )
+ {
+ vlc_object_unlock( PL );
+ playlist_mark_locked( p_instance, 0 );
+ }
+ RAISEVOID( "Unable to find item" );
+ }
+
+ playlist_Control( PL, PLAYLIST_VIEWPLAY, pl_Locked,
+ PL->status.p_node, p_item );
+ if( did_lock == 1 )
+ {
+ vlc_object_unlock( PL );
+ playlist_mark_locked( p_instance, 0 );
+ }