- int i_ret = ( playlist_NodeAddInput( p->p_playlist, p_input, p_dest,
- PLAYLIST_PREPARSE, i_pos, VLC_FALSE ) != VLC_SUCCESS );
+ int i_ret = ( playlist_BothAddInput( p->p_playlist, p_input, p_dest,
+ PLAYLIST_PREPARSE, i_pos, NULL, NULL, pl_Unlocked ) != VLC_SUCCESS );
+ vlc_gc_decref( p_input );