* \brief XSPF playlist import functions
*/
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
#include <vlc/vlc.h>
#include <vlc_demux.h>
input_item_t *p_new_input = p_demux->p_sys->pp_tracklist[i];
if( p_new_input )
{
- input_ItemAddSubItem( p_current_input, p_new_input, VLC_FALSE );
+ input_ItemAddSubItem( p_current_input, p_new_input );
}
- vlc_gc_decref( p_new_input );
}
HANDLE_PLAY_AND_RELEASE;
/** \brief dummy function for demux callback interface */
static int Control( demux_t *p_demux, int i_query, va_list args )
{
+ VLC_UNUSED(p_demux); VLC_UNUSED(i_query); VLC_UNUSED(args);
return VLC_EGENERIC;
}
*/
static vlc_bool_t parse_tracklist_node COMPLEX_INTERFACE
{
+ VLC_UNUSED(psz_element);
char *psz_name=NULL;
int i_node;
int i_ntracks = 0;
msg_Warn( p_demux, "<node> requires \"title\" attribute" );
return VLC_FALSE;
}
- p_new_input = input_ItemNewWithType( VLC_OBJECT(p_playlist), "vlc:nop",
+ p_new_input = input_ItemNewWithType( VLC_OBJECT( p_playlist ), "vlc:nop",
psz_title, 0, NULL, -1, ITEM_TYPE_DIRECTORY );
if( p_new_input )
{
- input_ItemAddSubItem( p_input_item, p_new_input, VLC_TRUE );
+ input_ItemAddSubItem( p_input_item, p_new_input );
p_input_item = p_new_input;
}
free( psz_title );
*/
static vlc_bool_t parse_extitem_node COMPLEX_INTERFACE
{
+ VLC_UNUSED(p_playlist); VLC_UNUSED(psz_element);
input_item_t *p_new_input = NULL;
char *psz_name = NULL;
char *psz_value = NULL;
p_new_input = p_demux->p_sys->pp_tracklist[ i_href ];
if( p_new_input )
{
- input_ItemAddSubItem( p_input_item, p_new_input, VLC_FALSE );
+ input_ItemAddSubItem( p_input_item, p_new_input );
p_demux->p_sys->pp_tracklist[i_href] = NULL;
- vlc_gc_decref( p_new_input );
}
/* kludge for #1293 - XTAG sends ENDELEM for self closing tag */
*/
static vlc_bool_t skip_element COMPLEX_INTERFACE
{
+ VLC_UNUSED(p_demux); VLC_UNUSED(p_playlist); VLC_UNUSED(p_input_item);
char *psz_endname;
while( xml_ReaderRead( p_xml_reader ) == 1 )