mirror of
https://code.videolan.org/videolan/vlc
synced 2024-08-27 04:21:53 +02:00
control/media_descriptor.c: Give access to the subitems.
This commit is contained in:
parent
bf60cc95d2
commit
9274704b3a
@ -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,7 +253,8 @@ void libvlc_media_descriptor_release( libvlc_media_descriptor_t *p_md )
|
||||
if( p_md->i_refcount > 0 )
|
||||
return;
|
||||
|
||||
libvlc_media_list_release( p_md->p_subitems );
|
||||
if( p_md->p_subitems )
|
||||
libvlc_media_list_release( p_md->p_subitems );
|
||||
|
||||
uninstall_input_item_observer( p_md );
|
||||
vlc_gc_decref( p_md->p_input_item );
|
||||
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user