Enable AV_LOG_SKIP_REPEATED to maintain previous behavior.
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 24 Sep 2010 15:39:10 +0000 (15:39 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 24 Sep 2010 15:39:10 +0000 (15:39 +0000)
Originally committed as revision 25175 to svn://svn.ffmpeg.org/ffmpeg/trunk

ffmpeg.c
ffplay.c

index 9d7b2e5..bd98bab 100644 (file)
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -502,6 +502,7 @@ static int configure_filters(AVInputStream *ist, AVOutputStream *ost)
 
 static void term_exit(void)
 {
+    av_log(NULL, AV_LOG_QUIET, "");
 #if HAVE_TERMIOS_H
     tcsetattr (0, TCSANOW, &oldtty);
 #endif
@@ -4290,6 +4291,8 @@ int main(int argc, char **argv)
     int i;
     int64_t ti;
 
+    av_log_set_flags(AV_LOG_SKIP_REPEATED);
+
     avcodec_register_all();
 #if CONFIG_AVDEVICE
     avdevice_register_all();
index 0272c3b..03017ab 100644 (file)
--- a/ffplay.c
+++ b/ffplay.c
@@ -1344,6 +1344,7 @@ static void do_exit(void)
     if (show_status)
         printf("\n");
     SDL_Quit();
+    av_log(NULL, AV_LOG_QUIET, "");
     exit(0);
 }
 
@@ -3152,6 +3153,8 @@ int main(int argc, char **argv)
 {
     int flags, i;
 
+    av_log_set_flags(AV_LOG_SKIP_REPEATED);
+
     /* register all codecs, demux and protocols */
     avcodec_register_all();
 #if CONFIG_AVDEVICE