/*****************************************************************************
* Preamble
*****************************************************************************/
-#include <ctype.h> /* isspace() */
#include <vlc/vlc.h>
#include <vlc_demux.h>
*****************************************************************************/
int E_(Import_B4S)( vlc_object_t *p_this )
{
- DEMUX_BY_EXTENSION_OR_FORCED_MSG( ".b4s", "b4s-open",
+ DEMUX_BY_EXTENSION_OR_FORCED_MSG( ".b4s", "b4s-open",
"using B4S playlist reader" );
p_demux->p_sys->psz_prefix = E_(FindPrefix)( p_demux );
p_demux->p_sys->p_xml = NULL;
}
else if( !strcmp( psz_name, "label" ) )
{
- playlist_ItemSetName( p_current, psz_value );
+ input_item_SetName( p_current_input, psz_value );
}
else
{
{
p_input = input_ItemNewExt( p_playlist, psz_mrl, psz_name,
0, NULL, -1 );
- p_input->p_meta = vlc_meta_New();
if( psz_now )
- vlc_meta_SetNowPlaying( p_input->p_meta, psz_now );
+ input_item_SetNowPlaying( p_input, psz_now );
if( psz_genre )
- vlc_meta_SetGenre( p_input->p_meta, psz_genre );
+ input_item_SetGenre( p_input, psz_genre );
if( psz_listeners )
msg_Err( p_playlist, "Unsupported meta listeners" );
if( psz_bitrate )
msg_Err( p_playlist, "Unsupported meta bitrate" );
- playlist_BothAddInput( p_playlist, p_input,
- p_item_in_category,
- PLAYLIST_APPEND | PLAYLIST_SPREPARSE,
- PLAYLIST_END, NULL, NULL, VLC_FALSE );
+ input_ItemAddSubItem( p_current_input, p_input );
FREENULL( psz_name );
FREENULL( psz_mrl );
FREENULL( psz_genre );