From 7fbab242624ec313eb00a4dc3f53b4ada3e5f512 Mon Sep 17 00:00:00 2001 From: folke Date: Fri, 17 Aug 2001 14:53:11 +0000 Subject: [PATCH] now linux/curses detection works git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1577 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/vo_aa.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/libvo/vo_aa.c b/libvo/vo_aa.c index 5709f22376..a74522e9b5 100644 --- a/libvo/vo_aa.c +++ b/libvo/vo_aa.c @@ -216,7 +216,7 @@ init(uint32_t width, uint32_t height, uint32_t d_width, char fname[12]; int fd, vt, major, minor; struct stat sbuf; - char * hidis; + char * hidis = NULL; int i; switch(format) { @@ -255,8 +255,11 @@ init(uint32_t width, uint32_t height, uint32_t d_width, sprintf (fname, "/dev/vcsa%i", vt); fp = fopen (fname, "w+"); if (fp==NULL){ - fprintf(stderr,"VO: [aa] cannot open %s for writing, so we'll not use linux driver\n", fname); + fprintf(stderr,"VO: [aa] cannot open %s for writing," + "so we'll not use linux driver\n", fname); aa_recommendlowdisplay("linux"); + aa_recommendhidisplay("curses"); + aa_recommendhidisplay("X11"); }else fclose(fp); } c = aa_autoinit(&aa_defparams);