now linux/curses detection works

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1577 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
folke 2001-08-17 14:53:11 +00:00
parent 8692ac860f
commit 7fbab24262
1 changed files with 5 additions and 2 deletions

View File

@ -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);