Commit 48586f51 authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

media_list.c: Handle item addition and removal in the flat list. Also Get the...

media_list.c: Handle item addition and removal in the flat list. Also Get the media_list to init and release the flat media list.
parent 9bd5dd03
This diff is collapsed.
...@@ -246,6 +246,10 @@ VLC_EXPORT (libvlc_media_descriptor_t *, libvlc_media_descriptor_new_from_input_ ...@@ -246,6 +246,10 @@ VLC_EXPORT (libvlc_media_descriptor_t *, libvlc_media_descriptor_new_from_input_
VLC_EXPORT (libvlc_media_descriptor_t *, libvlc_media_descriptor_duplicate, VLC_EXPORT (libvlc_media_descriptor_t *, libvlc_media_descriptor_duplicate,
( libvlc_media_descriptor_t * ) ); ( libvlc_media_descriptor_t * ) );
/* Media List */
VLC_EXPORT ( void, libvlc_media_list_flat_media_list_release,
( libvlc_media_list_t * ) );
/* Events */ /* Events */
VLC_EXPORT (void, libvlc_event_init, ( libvlc_instance_t *p_instance, libvlc_exception_t *p_e ) ); VLC_EXPORT (void, libvlc_event_init, ( libvlc_instance_t *p_instance, libvlc_exception_t *p_e ) );
......
...@@ -217,8 +217,7 @@ void libvlc_media_list_release( libvlc_media_list_t * p_mlist ) ...@@ -217,8 +217,7 @@ void libvlc_media_list_release( libvlc_media_list_t * p_mlist )
/* Refcount null, time to free */ /* Refcount null, time to free */
/* Handled in flat_media_list.c */ /* Handled in flat_media_list.c */
if( p_mlist->p_flat_mlist ) libvlc_media_list_flat_media_list_release( p_mlist );
libvlc_media_list_release( p_mlist->p_flat_mlist );
libvlc_event_manager_release( p_mlist->p_event_manager ); libvlc_event_manager_release( p_mlist->p_event_manager );
......
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