if( asprintf( &psz_mrl, SHOUTCAST_BASE_URL "?genre=%s",
psz_name ) != -1 )
{
- p_input = input_item_NewExt( p_demux, psz_mrl,
- psz_name, 0, NULL, 0, -1 );
+ p_input = input_item_New( p_demux, psz_mrl, psz_name );
input_item_CopyOptions( p_sys->p_current_input, p_input );
free( psz_mrl );
input_item_AddSubItem( p_sys->p_current_input, p_input );
psz_base, psz_id ) == -1 )
psz_mrl = NULL;
}
- p_input = input_item_NewExt( p_demux, psz_mrl,
- psz_name , 0, NULL, 0, -1 );
+ p_input = input_item_New( p_demux, psz_mrl, psz_name );
+ input_item_CopyOptions( p_sys->p_current_input, p_input );
free( psz_mrl );
- input_item_CopyOptions( p_sys->p_current_input,
- p_input );
-
-#define SADD_INFO( type, field ) if( field ) { input_item_AddInfo( \
- p_input, _("Shoutcast"), _(type), "%s", field ) ; }
- SADD_INFO( "Mime type", psz_mt );
- SADD_INFO( "Bitrate", psz_br );
- SADD_INFO( "Listeners", psz_lc );
- SADD_INFO( "Load", psz_load );
+#define SADD_INFO( type, field ) \
+ if( field ) \
+ input_item_AddInfo( p_input, _("Shoutcast"), \
+ vlc_gettext(type), "%s", field )
+ SADD_INFO( N_("Mime"), psz_mt );
+ SADD_INFO( N_("Bitrate"), psz_br );
+ SADD_INFO( N_("Listeners"), psz_lc );
+ SADD_INFO( N_("Load"), psz_load );
if( psz_genre )
input_item_SetGenre( p_input, psz_genre );
if( psz_ct )