]> git.sesse.net Git - vlc/commitdiff
Hopefully fix bug with playlist parsing (line-feed problem)
authorClément Stenac <zorglub@videolan.org>
Tue, 18 May 2004 11:21:22 +0000 (11:21 +0000)
committerClément Stenac <zorglub@videolan.org>
Tue, 18 May 2004 11:21:22 +0000 (11:21 +0000)
src/input/stream.c

index 225b9f415d1e1b484d24a78a02f2d94974237b41..32f230834c4d3dc958abe835130c4bd079d04ef8 100644 (file)
@@ -45,7 +45,7 @@ char *stream_ReadLine( stream_t *s )
     int      i = 0;
     i_data = stream_Peek( s, &p_data, MAX_LINE );
 
-    while( i < i_data && p_data[i] != '\n' )
+    while( i < i_data && p_data[i] != '\n' &&  i < i_data && p_data[i] != '\r')
     {
         i++;
     }