# HG changeset patch # User henry # Date 1067290589 0 # Node ID b4c7de4cfbf2b769cca923cbb119e0fdb7c77919 # Parent 86916e46d4451ab5c334641954653c8b4eca210e prevent lockups on words which do not fit on the screen - temporary fix diff -r 86916e46d445 -r b4c7de4cfbf2 libvo/sub.c --- a/libvo/sub.c Mon Oct 27 21:12:29 2003 +0000 +++ b/libvo/sub.c Mon Oct 27 21:36:29 2003 +0000 @@ -467,10 +467,10 @@ otp = tmp_otp = (struct osd_text_p *) calloc(1, sizeof(struct osd_text_p)); tmp_otp->ott = osl; for (tmp_ott = tmp_otp->ott; exit == 0; ) { - while ((tmp_ott != NULL) && (value + tmp_ott->osd_kerning + tmp_ott->osd_length <= xlimit)) { + do { value += tmp_ott->osd_kerning + tmp_ott->osd_length; tmp_ott = tmp_ott->next; - } + } while ((tmp_ott != NULL) && (value + tmp_ott->osd_kerning + tmp_ott->osd_length <= xlimit)); if (tmp_ott != NULL) { struct osd_text_p *tmp = (struct osd_text_p *) calloc(1, sizeof(struct osd_text_p));