mirror of
https://github.com/mpv-player/mpv
synced 2024-12-26 00:42:57 +00:00
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:
parent
eb14533f92
commit
1197d4d187
@ -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));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user