prevent lockups on words which do not fit on the screen - temporary fix

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11298 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
henry 2003-10-27 21:36:29 +00:00
parent eb14533f92
commit 1197d4d187
1 changed files with 2 additions and 2 deletions

View File

@ -467,10 +467,10 @@ inline static void vo_update_text_sub(mp_osd_obj_t* obj,int dxs,int dys){
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));