diff 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
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;
    }