]> git.sesse.net Git - vlc/blobdiff - src/playlist/item.c
playlist: append input subitems to the end of parent item
[vlc] / src / playlist / item.c
index 6d971f246ece4919291da55381d7f27ef4c1668c..a234ffb0a529339661cb2dc52fe46b6ace790090 100644 (file)
@@ -98,7 +98,7 @@ static void input_item_add_subitem_tree ( const vlc_event_t * p_event,
     }
     else
         p_item = playlist_InsertInputItemTree( p_playlist, p_item,
-                                               p_new_root, 0, false );
+                                               p_new_root, p_item->i_children, false );
 
     if( !b_flat ) var_SetAddress( p_playlist, "leaf-to-parent", p_input );