Fixes a problem where the menu won't work, if you just use freetype fonts

and have no font.desc.
patch by Andreas Hess <jaska@gmx.net>


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9213 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
arpi 2003-02-02 01:43:40 +00:00
parent 3591e28c37
commit 95d4edb1b0
1 changed files with 2 additions and 0 deletions

View File

@ -117,8 +117,10 @@ int menu_init(char* cfg_file) {
char* buffer = NULL;
int bl = BUF_STEP, br = 0;
int f, fd;
#ifndef HAVE_FREETYPE
if(vo_font == NULL)
return 0;
#endif
fd = open(cfg_file, O_RDONLY);
if(fd < 0) {
printf("Can't open menu config file: %s\n",cfg_file);