1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-22 06:42:03 +00:00

don't use uninitialized font descriptions

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12795 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
faust3 2004-07-11 12:45:59 +00:00
parent 0a33aed66e
commit 5ca7793b78

View File

@ -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; 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; obj->flags&=~OSDFLAG_VISIBLE;
return; return;
} }