comparison libvo/sub.c @ 12794:0d17f2b4292c

don't use uninitialized font descriptions
author faust3
date Sun, 11 Jul 2004 12:45:59 +0000
parents b4c7de4cfbf2
children 1a4b6e575484
comparison
equal deleted inserted replaced
12793:a9429d90157a 12794:0d17f2b4292c
340 int h,lasth; 340 int h,lasth;
341 int xtblc, utblc; 341 int xtblc, utblc;
342 342
343 obj->flags|=OSDFLAG_CHANGED|OSDFLAG_VISIBLE; 343 obj->flags|=OSDFLAG_CHANGED|OSDFLAG_VISIBLE;
344 344
345 if(!vo_sub || !vo_font || !sub_visibility){ 345 if(!vo_sub || !vo_font || !sub_visibility || (vo_font->font[40]<0)){
346 obj->flags&=~OSDFLAG_VISIBLE; 346 obj->flags&=~OSDFLAG_VISIBLE;
347 return; 347 return;
348 } 348 }
349 349
350 obj->bbox.y2=obj->y=dys; 350 obj->bbox.y2=obj->y=dys;