/*****************************************************************************
* m3u.c: a meta demux to parse pls, m3u, asx et b4s playlists
*****************************************************************************
- * Copyright (C) 2001 VideoLAN
- * $Id: m3u.c,v 1.23 2003/07/23 01:13:47 gbazin Exp $
+ * Copyright (C) 2001-2004 VideoLAN
+ * $Id$
*
* Authors: Sigmund Augdal <sigmunau@idi.ntnu.no>
* Gildas Bazin <gbazin@netcourrier.com>
* Module descriptor
*****************************************************************************/
vlc_module_begin();
- set_description( _("playlist metademux") );
+ set_description( _("Playlist metademux") );
set_capability( "demux", 180 );
set_callbacks( Activate, Deactivate );
add_shortcut( "m3u" );
/* we had no luck looking at the file extention, so we have a look
* at the content. This is useful for .asp, .php and similar files
- * that are actually html. Also useful for som asx files that have
- * another extention */
+ * that are actually html. Also useful for some asx files that have
+ * another extension */
/* XXX we double check for file != m3u as some asx ... are just m3u file */
if( i_type != TYPE_M3U )
{
{
i_type2 = TYPE_ASX;
}
+#if 0
else if ( !strncasecmp( p_peek, "<?xml", sizeof("<?xml") -1 ) )
{
i_type2 = TYPE_B4S;
}
+#endif
}
}
if ( i_type == TYPE_UNKNOWN && i_type2 == TYPE_UNKNOWN)
if( b_next && *ppsz_uri )
{
- playlist_AddName( p_playlist,
- *ppsz_name ? *ppsz_name : *ppsz_uri, *ppsz_uri,
- 0, 0, PLAYLIST_INSERT, *pi_position );
+ playlist_Add( p_playlist, *ppsz_uri,
+ *ppsz_name ? *ppsz_name : *ppsz_uri,
+ PLAYLIST_INSERT, *pi_position );
(*pi_position)++;
if( *ppsz_name )
{
/* is there a pendding uri without b_next */
if( psz_uri )
{
- playlist_Add( p_playlist, psz_uri, 0, 0,
+ playlist_Add( p_playlist, psz_uri, psz_uri,
PLAYLIST_INSERT, i_position );
}
}