]> git.sesse.net Git - vlc/blobdiff - modules/demux/playlist/pls.c
input_item: compress two functions into one and rename "Add" into "Post" for clarity...
[vlc] / modules / demux / playlist / pls.c
index 0089db3cda3f8abae51808096453305562c61d70..7bbdcb4e4f002d9ab0ccdb3e6d7b291f37f58ca0 100644 (file)
@@ -230,8 +230,7 @@ static int Demux( demux_t *p_demux )
     free( psz_name );
     psz_name = NULL;
 
-    input_item_AddSubItemTree( p_subitems );
-    input_item_node_Delete( p_subitems );
+    input_item_node_PostAndDelete( p_subitems );
 
     vlc_gc_decref(p_current_input);
     return 0; /* Needed for correct operation of go back */