+ else if ( p_m3u->i_type == TYPE_B4S )
+ {
+
+ char *psz_eol;
+
+ msg_Dbg( p_input, "b4s line=%s", psz_line );
+ /* We are dealing with a B4S file from Winamp 3 */
+
+ /* First, search for name *
+ * <Name>Blabla</Name> */
+
+ if( strstr ( psz_bol, "<Name>" ) )
+ {
+ /* We have a name */
+ while ( *psz_bol &&
+ strncasecmp( psz_bol,"Name",sizeof("Name") -1 ) )
+ psz_bol++;
+
+ if( !*psz_bol ) return 0;
+
+ psz_bol = psz_bol + 5 ;
+ /* We are now at the beginning of the name */
+
+ if( !psz_bol ) return 0;
+
+
+ psz_eol = strchr(psz_bol, '<' );
+ if( !psz_eol) return 0;
+
+ *psz_eol='\0';
+
+ XMLSpecialChars( psz_bol );
+
+ strcpy( psz_data, psz_bol );
+ return 2;
+ }
+ else if( strstr( psz_bol, "</entry>" ) || strstr( psz_bol, "</Entry>" ))
+ {
+ *pb_next = VLC_TRUE;
+ return 0;
+ }
+
+ /* We are looking for <entry Playstring="blabla"> */
+
+
+ while ( *psz_bol &&
+ strncasecmp( psz_bol,"Playstring",sizeof("Playstring") -1 ) )
+ psz_bol++;
+
+ if( !*psz_bol ) return 0;
+
+ psz_bol = strchr( psz_bol, '=' );
+ if ( !psz_bol ) return 0;
+
+ psz_bol += 2;
+
+ psz_eol= strchr(psz_bol, '"');
+ if( !psz_eol ) return 0;
+
+ *psz_eol= '\0';
+
+ /* Handle the XML special characters */
+ XMLSpecialChars( psz_bol );
+ }