control/media_descriptor.c: Remove a typo that makes the subitems to appear empty.
authorPierre d'Herbemont <pdherbemont@videolan.org>
Sat, 25 Aug 2007 17:40:11 +0000 (17:40 +0000)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Sat, 25 Aug 2007 17:40:11 +0000 (17:40 +0000)
src/control/media_descriptor.c

index 03762a7..416d0ac 100644 (file)
@@ -89,7 +89,7 @@ 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 );
-    if( !p_md->p_subitems )
+    if( p_md->p_subitems )
     {
         libvlc_media_list_add_media_descriptor( p_md->p_subitems, p_md_child, NULL );
     }