Commit 9274704b authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

control/media_descriptor.c: Give access to the subitems.

parent bf60cc95
......@@ -233,6 +233,10 @@ VLC_PUBLIC_API libvlc_tag_t
const char * key,
libvlc_exception_t *p_e );
VLC_PUBLIC_API libvlc_media_list_t *
libvlc_media_descriptor_subitems( libvlc_media_descriptor_t *p_md,
libvlc_exception_t *p_e );
/** @}*/
/*****************************************************************************
......
......@@ -253,6 +253,7 @@ void libvlc_media_descriptor_release( libvlc_media_descriptor_t *p_md )
if( p_md->i_refcount > 0 )
return;
if( p_md->p_subitems )
libvlc_media_list_release( p_md->p_subitems );
uninstall_input_item_observer( p_md );
......@@ -437,3 +438,14 @@ libvlc_media_descriptor_tag_at_index_for_key( libvlc_media_descriptor_t *p_md,
return strdup( p_ts->ppsz_tags[i] );
}
/**************************************************************************
* subitems
**************************************************************************/
libvlc_media_list_t *
libvlc_media_descriptor_subitems( libvlc_media_descriptor_t * p_md,
libvlc_exception_t * p_e )
{
libvlc_media_list_retain( p_md->p_subitems );
return p_md->p_subitems;
}
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