i_position = p_playlist->i_index + 1;
while( ( psz_line = stream_ReadLine( p_demux->s ) ) )
{
+
+ /* Skip leading tabs and spaces */
+ while( *psz_line == ' ' || *psz_line == '\t' ||
+ *psz_line == '\n' || *psz_line == '\r' )
+ {
+ psz_line++;
+ }
+
if( *psz_line == '#' )
{
/* parse extra info */
int i = 0;
i_data = stream_Peek( s, &p_data, MAX_LINE );
- while( i < i_data && p_data[i] != '\n' && i < i_data && p_data[i] != '\r')
+ while( i < i_data && p_data[i] != '\n' && p_data[i] != '\r' )
{
i++;
}