diff options
author | faust3 <faust3@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2004-09-16 08:12:05 +0000 |
---|---|---|
committer | faust3 <faust3@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2004-09-16 08:12:05 +0000 |
commit | 8679873019b1ccbd4c7ec2b2794229b1c3da3d19 (patch) | |
tree | d1a3cfa931b79574aaf64edf366916b7b970d146 /osdep | |
parent | 56f0d012e3a0088d4528b083d71ba2da84c746fc (diff) |
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
Diffstat (limited to 'osdep')
-rw-r--r-- | osdep/vbelib.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/osdep/vbelib.c b/osdep/vbelib.c index 5ca5b3c59b..9eebcef352 100644 --- a/osdep/vbelib.c +++ b/osdep/vbelib.c @@ -111,8 +111,8 @@ static void hide_terminal_output( void ) my_stderr = fopen(ttyname(fileno(stderr)),"w"); __set_cursor_type(stdout,0); /*if(isatty(fileno(stdin ))) stdin =freopen("/dev/null","r",stdin );*/ - if(isatty(fileno(stdout))) stdout=freopen("/dev/null","w",stdout); - if(isatty(fileno(stderr))) stderr=freopen("/dev/null","w",stderr); + if(isatty(fileno(stdout))) freopen("/dev/null","w",stdout); + if(isatty(fileno(stderr))) freopen("/dev/null","w",stderr); } static unsigned hh_int_10_seg; |