changeset 7205:9d11474c39af

WARNING message gui windows disabled, the only critical warn message (too slow) moved to ERROR
author arpi
date Sat, 31 Aug 2002 16:20:07 +0000
parents eee464fa02c1
children 09722d199d83
files mp_msg.c mplayer.c
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mp_msg.c	Sat Aug 31 15:59:10 2002 +0000
+++ b/mp_msg.c	Sat Aug 31 16:20:07 2002 +0000
@@ -69,9 +69,14 @@
 	    case MSGL_ERR:
 		gtkMessageBox(GTK_MB_ERROR|GTK_MB_SIMPLE, tmp);
 		break;
+#if 0
+// WARNING! Do NOT enable this! There are too many non-critical messages with
+// MSGL_WARN, for example: broken SPU packets, codec's bit error messages,
+// etc etc, they should not raise up a new window every time.
 	    case MSGL_WARN:
 		gtkMessageBox(GTK_MB_WARNING|GTK_MB_SIMPLE, tmp);
 		break;
+#endif
 	}
     }
 #endif
--- a/mplayer.c	Sat Aug 31 15:59:10 2002 +0000
+++ b/mplayer.c	Sat Aug 31 16:20:07 2002 +0000
@@ -1799,7 +1799,7 @@
 	AV_delay=(a_pts-delay-audio_delay)-v_pts;
 	if(drop_frame_cnt>50+drop_message*250 && AV_delay>0.5){
 	  ++drop_message;
-	  mp_msg(MSGT_AVSYNC,MSGL_WARN,MSGTR_SystemTooSlow);
+	  mp_msg(MSGT_AVSYNC,MSGL_ERR,MSGTR_SystemTooSlow);
 	}
         x=AV_delay*0.1f;
         if(x<-max_pts_correction) x=-max_pts_correction; else