summaryrefslogtreecommitdiffstats
path: root/osdep
diff options
context:
space:
mode:
authorfaust3 <faust3@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-09-16 08:12:05 +0000
committerfaust3 <faust3@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-09-16 08:12:05 +0000
commit8679873019b1ccbd4c7ec2b2794229b1c3da3d19 (patch)
treed1a3cfa931b79574aaf64edf366916b7b970d146 /osdep
parent56f0d012e3a0088d4528b083d71ba2da84c746fc (diff)
downloadmpv-8679873019b1ccbd4c7ec2b2794229b1c3da3d19.tar.bz2
mpv-8679873019b1ccbd4c7ec2b2794229b1c3da3d19.tar.xz
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.c4
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;