int index,
libvlc_exception_t * p_e )
{
- VLC_UNUSED(p_e);
libvlc_media_descriptor_t * p_md;
+ if( index < 0 || index > vlc_array_count( &p_mlist->items ))
+ {
+ libvlc_exception_raise( p_e, "Index out of bounds exception");
+ return;
+ }
+
p_md = vlc_array_item_at_index( &p_mlist->items, index );
notify_item_deletion( p_mlist, p_md, index, EventWillHappen );