From db1e3c66af91d4c1675aedfdfb70f35ac34e5130 Mon Sep 17 00:00:00 2001 From: arpi Date: Sun, 26 Jan 2003 16:02:58 +0000 Subject: =?UTF-8?q?mplayer=20crashes=20if=20one=20tries=20to=20use=20osd?= =?UTF-8?q?=20menu=20without=20having=20a=20font=20installed.=20The=20patc?= =?UTF-8?q?h=20to=20menu.c=20is=20one=20way=20to=20fix=20that.=20patch=20b?= =?UTF-8?q?y=20Bj=C3=B6rn=20Sandell=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9104 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmenu/menu.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'libmenu') diff --git a/libmenu/menu.c b/libmenu/menu.c index 87898c0b4b..616220dfdb 100644 --- a/libmenu/menu.c +++ b/libmenu/menu.c @@ -116,8 +116,10 @@ static int menu_parse_config(char* buffer) { int menu_init(char* cfg_file) { char* buffer = NULL; int bl = BUF_STEP, br = 0; - int f; - int fd = open(cfg_file, O_RDONLY); + int f, fd; + if(vo_font == NULL) + return 0; + fd = open(cfg_file, O_RDONLY); if(fd < 0) { printf("Can't open menu config file: %s\n",cfg_file); return 0; -- cgit v1.2.3