]> git.sesse.net Git - vlc/blobdiff - src/control/media_descriptor.c
control/media_descriptor.c: Set the media descriptor of the subitems.
[vlc] / src / control / media_descriptor.c
index 3dd6e1f5df8b78406bdd43d90496e7e3ff463887..45f76dab771575879f1be267c2a713cbc269a827 100644 (file)
@@ -88,7 +88,10 @@ static void input_item_subitem_added( const vlc_event_t *p_event,
 
     /* Add this to our media list */
     if( !p_md->p_subitems )
+    {
         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 )
     {
         libvlc_media_list_add_media_descriptor( p_md->p_subitems, p_md_child, NULL );