From 8679873019b1ccbd4c7ec2b2794229b1c3da3d19 Mon Sep 17 00:00:00 2001 From: faust3 Date: Thu, 16 Sep 2004 08:12:05 +0000 Subject: 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 git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13353 b3059339-0415-0410-9bf9-f77b7e298cf2 --- osdep/vbelib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'osdep') 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; -- cgit v1.2.3