Commit 8e4409e7 authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

control/media_descriptor.c: Set the media descriptor of the subitems.

parent bfdc79f1
...@@ -88,7 +88,10 @@ static void input_item_subitem_added( const vlc_event_t *p_event, ...@@ -88,7 +88,10 @@ static void input_item_subitem_added( const vlc_event_t *p_event,
/* Add this to our media list */ /* Add this to our media list */
if( !p_md->p_subitems ) if( !p_md->p_subitems )
{
p_md->p_subitems = libvlc_media_list_new( p_md->p_libvlc_instance, NULL ); p_md->p_subitems = libvlc_media_list_new( p_md->p_libvlc_instance, NULL );
libvlc_media_list_set_media_descriptor( p_md->p_subitems, p_md, NULL );
}
if( p_md->p_subitems ) if( p_md->p_subitems )
{ {
libvlc_media_list_add_media_descriptor( p_md->p_subitems, p_md_child, NULL ); libvlc_media_list_add_media_descriptor( p_md->p_subitems, p_md_child, NULL );
......
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