[Mplayer-cvslog] CVS: main mp_msg.c,1.7,1.8

Arpi of Ize arpi at mplayer.dev.hu
Thu Dec 27 01:34:04 CET 2001


Update of /cvsroot/mplayer/main
In directory mplayer:/var/tmp.root/cvs-serv15542

Modified Files:
	mp_msg.c 
Log Message:
fflush disappeared? .so?

Index: mp_msg.c
===================================================================
RCS file: /cvsroot/mplayer/main/mp_msg.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- mp_msg.c	3 Dec 2001 21:10:18 -0000	1.7
+++ mp_msg.c	27 Dec 2001 00:34:00 -0000	1.8
@@ -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);
 }




More information about the MPlayer-cvslog mailing list