Mercurial > mplayer.hg
changeset 3780:9eb4aa623ab6
fflush disappeared? .so?
author | arpi |
---|---|
date | Thu, 27 Dec 2001 00:34:00 +0000 |
parents | b987b69d1bd6 |
children | 3a2bd7d449f7 |
files | mp_msg.c |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mp_msg.c Wed Dec 26 23:31:30 2001 +0000 +++ b/mp_msg.c Thu Dec 27 00:34:00 2001 +0000 @@ -35,27 +35,33 @@ switch( x&255 ) { case MSGL_FATAL: fprintf( stderr,"%s",tmp ); + fflush(stderr); gtkMessageBox( GTK_MB_FATAL|GTK_MB_SIMPLE,tmp ); break; case MSGL_ERR: fprintf( stderr,"%s",tmp ); + fflush(stderr); gtkMessageBox( GTK_MB_ERROR|GTK_MB_SIMPLE,tmp ); break; case MSGL_WARN: printf( "%s",tmp ); + fflush(stdout); gtkMessageBox( GTK_MB_WARNING|GTK_MB_SIMPLE,tmp ); break; default: printf( "%s",tmp ); + fflush(stdout); } } else #endif if((x&255)<=MSGL_ERR){ // fprintf(stderr,"%%%%%% "); vfprintf(stderr,format, va); + fflush(stderr); } else { // printf("%%%%%% "); vprintf(format, va); + fflush(stdout); } va_end(va); }