summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authorfaust3 <faust3@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-07-11 12:45:59 +0000
committerfaust3 <faust3@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-07-11 12:45:59 +0000
commit5ca7793b78d2aadc8a6e9d0250b39139c79333a4 (patch)
tree89ed2977cdcb1db306ed3613529b894351b26c2c /libvo
parent0a33aed66eb44089449d95f5633813b268b11797 (diff)
downloadmpv-5ca7793b78d2aadc8a6e9d0250b39139c79333a4.tar.bz2
mpv-5ca7793b78d2aadc8a6e9d0250b39139c79333a4.tar.xz
don't use uninitialized font descriptions
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12795 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r--libvo/sub.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libvo/sub.c b/libvo/sub.c
index b3ea7b9ed8..4e923a03b3 100644
--- a/libvo/sub.c
+++ b/libvo/sub.c
@@ -342,7 +342,7 @@ inline static void vo_update_text_sub(mp_osd_obj_t* obj,int dxs,int dys){
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;
}