summaryrefslogtreecommitdiffstats
path: root/mp_msg.c
diff options
context:
space:
mode:
authornick <nick@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-02-28 08:26:20 +0000
committernick <nick@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-02-28 08:26:20 +0000
commitda63498bf947632d715f5e58182777b290ab4ec2 (patch)
tree12edf080d431dc9c3f784a77620ad918645b4abe /mp_msg.c
parent783c4f43e4a8024b2bb00714907fad7d67f47879 (diff)
downloadmpv-da63498bf947632d715f5e58182777b290ab4ec2.tar.bz2
mpv-da63498bf947632d715f5e58182777b290ab4ec2.tar.xz
Use stdout as default mencoder's output if no filename specified
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4889 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mp_msg.c')
-rw-r--r--mp_msg.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mp_msg.c b/mp_msg.c
index 033b21fc6b..f84d007c24 100644
--- a/mp_msg.c
+++ b/mp_msg.c
@@ -44,12 +44,12 @@ void mp_msg_c( int x, const char *format, ... ){
gtkMessageBox( GTK_MB_ERROR|GTK_MB_SIMPLE,tmp );
break;
case MSGL_WARN:
- printf( "%s",tmp );
+ fprintf( stderr, "%s",tmp );
fflush(stdout);
gtkMessageBox( GTK_MB_WARNING|GTK_MB_SIMPLE,tmp );
break;
default:
- printf( "%s",tmp );
+ fprintf(stderr, "%s",tmp );
fflush(stdout);
}
} else
@@ -60,7 +60,7 @@ void mp_msg_c( int x, const char *format, ... ){
fflush(stderr);
} else {
// printf("%%%%%% ");
- vprintf(format, va);
+ vfprintf(stderr,format, va);
fflush(stdout);
}
va_end(va);