Update of /cvsroot/mplayer/main/libvo In directory mail:/var/tmp.root/cvs-serv30159 Modified Files: sub.c Log Message: prevent lockups on words which do not fit on the screen - temporary fix Index: sub.c =================================================================== RCS file: /cvsroot/mplayer/main/libvo/sub.c,v retrieving revision 1.72 retrieving revision 1.73 diff -u -r1.72 -r1.73 --- sub.c 21 Oct 2003 08:45:13 -0000 1.72 +++ sub.c 27 Oct 2003 21:36:29 -0000 1.73 @@ -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));
participants (1)
-
Jindrich Makovicka CVS