int i_key_length;
input_item_t *p_input;
- INIT_PLAYLIST_STUFF;
+ input_item_t *p_current_input = GetCurrentItem(p_demux);
+
+ input_item_node_t *p_subitems = input_item_node_Create( p_current_input );
while( ( psz_line = stream_ReadLine( p_demux->s ) ) )
{
{
if( psz_mrl )
{
- p_input = input_ItemNewExt( p_playlist, psz_mrl, psz_name,
- 0, NULL, -1 );
- input_ItemCopyOptions( p_current_input, p_input );
- input_ItemAddSubItem( p_current_input, p_input );
+ p_input = input_item_New( p_demux, psz_mrl, psz_name );
+ input_item_CopyOptions( p_current_input, p_input );
+ input_item_node_AppendItem( p_subitems, p_input );
vlc_gc_decref( p_input );
}
else
/* Add last object */
if( psz_mrl )
{
- p_input = input_ItemNewExt( p_playlist, psz_mrl, psz_name,0, NULL, -1 );
- input_ItemCopyOptions( p_current_input, p_input );
- input_ItemAddSubItem( p_current_input, p_input );
+ p_input = input_item_New( p_demux, psz_mrl, psz_name );
+ input_item_CopyOptions( p_current_input, p_input );
+ input_item_node_AppendItem( p_subitems, p_input );
vlc_gc_decref( p_input );
free( psz_mrl_orig );
psz_mrl = NULL;
free( psz_name );
psz_name = NULL;
- HANDLE_PLAY_AND_RELEASE;
+ input_item_node_PostAndDelete( p_subitems );
+
+ vlc_gc_decref(p_current_input);
return 0; /* Needed for correct operation of go back */
}