mirror of https://github.com/mpv-player/mpv
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:
parent
8692ac860f
commit
7fbab24262
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue