mirror of
https://github.com/mpv-player/mpv
synced 2025-02-21 07:16:56 +00:00
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:
parent
3591e28c37
commit
95d4edb1b0
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user