# HG changeset patch # User alex # Date 1030554475 0 # Node ID 55716603988cb47680360844f94b410a22754928 # Parent 79187bd813a64de48dce090d2b65ace17e4f931b fixes problems when new line is just '\n' and not '\r\n' and enabled html-markup ignore. Patch by Piotr Krukowiecki diff -r 79187bd813a6 -r 55716603988c libmpdemux/demux_ogg.c --- a/libmpdemux/demux_ogg.c Wed Aug 28 16:55:40 2002 +0000 +++ b/libmpdemux/demux_ogg.c Wed Aug 28 17:07:55 2002 +0000 @@ -164,7 +164,7 @@ lcv = 3; while (1) { int c = packet[lcv++]; - if(c=='\r' || c==0 || line_pos >= OGG_SUB_MAX_LINE-1){ + if(c=='\n' || c==0 || line_pos >= OGG_SUB_MAX_LINE-1){ ogg_sub.text[ogg_sub.lines][line_pos] = 0; // close sub if(line_pos) ogg_sub.lines++; if(!c || ogg_sub.lines>=SUB_MAX_TEXT) break; // EOL or TooMany @@ -182,7 +182,7 @@ ignoring = 0; break; default: - //if(!ignoring) + if(!ignoring) ogg_sub.text[ogg_sub.lines][line_pos++] = c; break; }