changeset 33384:a60ae792b855

SAMI subs: start a new line if there's no space left to append to the previous one.
author reimar
date Thu, 19 May 2011 09:11:56 +0000
parents d70f79b6ee18
children 0f4642d8b4ab
files sub/subreader.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/sub/subreader.c	Wed May 18 09:45:18 2011 +0000
+++ b/sub/subreader.c	Thu May 19 09:11:56 2011 +0000
@@ -173,6 +173,8 @@
 	    break;
 
 	case 3: /* get all text until '<' appears */
+	    if (p - text >= LINE_LEN)
+	        sami_add_line(current, text, &p);
 	    if (*s == '\0') break;
 	    else if (!strncasecmp (s, "<br>", 4)) {
                 sami_add_line(current, text, &p);