Commit 58c603a4 authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

control/media_list.c: add_media_descriptor at the end of the list.

parent 25744ed0
...@@ -336,7 +336,7 @@ void libvlc_media_list_add_media_descriptor( ...@@ -336,7 +336,7 @@ void libvlc_media_list_add_media_descriptor(
{ {
(void)p_e; (void)p_e;
libvlc_media_descriptor_retain( p_md ); libvlc_media_descriptor_retain( p_md );
ARRAY_APPEND( p_mlist->items, p_md ); ARRAY_INSERT( p_mlist->items, p_md, p_mlist->items.i_size );
notify_item_addition( p_mlist, p_md, p_mlist->items.i_size-1 ); notify_item_addition( p_mlist, p_md, p_mlist->items.i_size-1 );
install_media_descriptor_observer( p_mlist, p_md ); install_media_descriptor_observer( p_mlist, p_md );
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment