# HG changeset patch # User faust3 # Date 1089549959 0 # Node ID 0d17f2b4292cb5f82c4b8e953661c287fff50c19 # Parent a9429d90157adb6838a96cf4a860fa04ead57581 don't use uninitialized font descriptions diff -r a9429d90157a -r 0d17f2b4292c libvo/sub.c --- a/libvo/sub.c Sun Jul 11 12:42:19 2004 +0000 +++ b/libvo/sub.c Sun Jul 11 12:45:59 2004 +0000 @@ -342,7 +342,7 @@ obj->flags|=OSDFLAG_CHANGED|OSDFLAG_VISIBLE; - if(!vo_sub || !vo_font || !sub_visibility){ + if(!vo_sub || !vo_font || !sub_visibility || (vo_font->font[40]<0)){ obj->flags&=~OSDFLAG_VISIBLE; return; }