#include <vlc_demux.h>
#include <vlc_url.h>
-#include <ctype.h>
-
#include "playlist.h"
struct demux_sys_t
input_item_t *p_current_input = GetCurrentItem(p_demux);
+ input_item_node_t *p_subitems = input_item_node_Create( p_current_input );
+
psz_line = stream_ReadLine( p_demux->s );
while( psz_line )
{
if( !EMPTY_STR( psz_comments ) ) input_item_SetDescription( p_input, psz_comments );
input_item_AddSubItem( p_current_input, p_input );
+ input_item_node_AppendItem( p_subitems, p_input );
vlc_gc_decref( p_input );
free( psz_mrl );
}
b_cleanup = false;
}
}
+ input_item_AddSubItemTree( p_subitems );
+ input_item_node_Delete( p_subitems );
vlc_gc_decref(p_current_input);
var_Destroy( p_demux, "m3u-extvlcopt" );
return 0; /* Needed for correct operation of go back */