changeset 12794:0d17f2b4292c

don't use uninitialized font descriptions
author faust3
date Sun, 11 Jul 2004 12:45:59 +0000
parents a9429d90157a
children ab369fe35121
files libvo/sub.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;
    }