i_ret = playlist_AddInput( p_playlist, p_input, i_mode, i_pos, b_playlist,
b_locked );
+ int i_id = i_ret == VLC_SUCCESS ? p_input->i_id : -1
+
vlc_gc_decref( p_input );
- if( i_ret == VLC_SUCCESS )
- return p_input->i_id;
- return -1;
+
+ return i_id;
}
/** Add an input item to the playlist node */