1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-30 02:52:10 +00:00

write fault error fixed

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1521 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
folke 2001-08-14 19:23:17 +00:00
parent a12e06f9da
commit baa44960ad

View File

@ -238,7 +238,7 @@ init(uint32_t width, uint32_t height, uint32_t d_width,
aa_hidecursor(c); aa_hidecursor(c);
p = aa_getrenderparams(); p = aa_getrenderparams();
if ((strstr(c->driver->name,"curses")) || (strstr(c->driver->name,"linux"))){ if ((strstr(c->driver->name,"Curses")) || (strstr(c->driver->name,"Linux"))){
freopen("/dev/null", "w", stderr); freopen("/dev/null", "w", stderr);
quiet=1; /* disable mplayer outputs */ quiet=1; /* disable mplayer outputs */
} }
@ -527,7 +527,7 @@ uninit(void) {
free(stx); free(stx);
free(sty); free(sty);
if (convertbuf!=NULL) free(convertbuf); if (convertbuf!=NULL) free(convertbuf);
if (strstr(c->driver->name,"curses") || strstr(c->driver->name,"libux")){ if (strstr(c->driver->name,"Curses") || strstr(c->driver->name,"Linux")){
freopen("/dev/tty", "w", stderr); freopen("/dev/tty", "w", stderr);
quiet=0; /* enable mplayer outputs */ quiet=0; /* enable mplayer outputs */
} }