summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authorhenry <henry@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-10-27 21:36:29 +0000
committerhenry <henry@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-10-27 21:36:29 +0000
commit1197d4d1870a0d1f9cff9b7a25cbbf2343f68698 (patch)
treed2884a9237eb0dca6a5cb5cdd16b3f17c82fcb24 /libvo
parenteb14533f92b0af945e830e098aefa1fd6a5ab3ba (diff)
downloadmpv-1197d4d1870a0d1f9cff9b7a25cbbf2343f68698.tar.bz2
mpv-1197d4d1870a0d1f9cff9b7a25cbbf2343f68698.tar.xz
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
Diffstat (limited to 'libvo')
-rw-r--r--libvo/sub.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libvo/sub.c b/libvo/sub.c
index 786c09496f..b3ea7b9ed8 100644
--- a/libvo/sub.c
+++ b/libvo/sub.c
@@ -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));