mirror of
https://github.com/mpv-player/mpv
synced 2025-01-31 12:11:52 +00:00
stdout and stderr are macros --- you can't assign to them. Assignment doesn't make sense anyway, because freopen will always return the same FILE * structure that it got in parameter. patch by Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13353 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
56f0d012e3
commit
8679873019
@ -111,8 +111,8 @@ static void hide_terminal_output( void )
|
|||||||
my_stderr = fopen(ttyname(fileno(stderr)),"w");
|
my_stderr = fopen(ttyname(fileno(stderr)),"w");
|
||||||
__set_cursor_type(stdout,0);
|
__set_cursor_type(stdout,0);
|
||||||
/*if(isatty(fileno(stdin ))) stdin =freopen("/dev/null","r",stdin );*/
|
/*if(isatty(fileno(stdin ))) stdin =freopen("/dev/null","r",stdin );*/
|
||||||
if(isatty(fileno(stdout))) stdout=freopen("/dev/null","w",stdout);
|
if(isatty(fileno(stdout))) freopen("/dev/null","w",stdout);
|
||||||
if(isatty(fileno(stderr))) stderr=freopen("/dev/null","w",stderr);
|
if(isatty(fileno(stderr))) freopen("/dev/null","w",stderr);
|
||||||
}
|
}
|
||||||
|
|
||||||
static unsigned hh_int_10_seg;
|
static unsigned hh_int_10_seg;
|
||||||
|
Loading…
Reference in New Issue
Block a user