]> git.sesse.net Git - vlc/blobdiff - modules/demux/mp4/mp4.c
input_item: compress two functions into one and rename "Add" into "Post" for clarity...
[vlc] / modules / demux / mp4 / mp4.c
index cf1827e6d5252fda551863d162eae057d14f1d47..5e772f93cfd9fb6614eae0778ea58e00c46d76f2 100644 (file)
@@ -423,7 +423,6 @@ static int Open( vlc_object_t * p_this )
                 msg_Dbg( p_demux, "adding ref = `%s'", psz_ref );
                 input_item_t *p_input = input_item_New( p_demux, psz_ref, NULL );
                 input_item_CopyOptions( p_current, p_input );
-                input_item_AddSubItem( p_current, p_input );
                 input_item_node_AppendItem( p_subitems, p_input );
                 vlc_gc_decref( p_input );
             }
@@ -434,8 +433,7 @@ static int Open( vlc_object_t * p_this )
             }
             free( psz_ref );
         }
-        input_item_AddSubItemTree( p_subitems );
-        input_item_node_Delete( p_subitems );
+        input_item_node_PostAndDelete( p_subitems );
         vlc_object_release( p_input );
     }