[FFmpeg-cvslog] r25177 - trunk/libavutil/log.c

michael subversion
Fri Sep 24 18:18:11 CEST 2010


Author: michael
Date: Fri Sep 24 18:18:10 2010
New Revision: 25177

Log:
Cosmetic (rename detect_repeats to is_atty which matches the truth)

Modified:
   trunk/libavutil/log.c

Modified: trunk/libavutil/log.c
==============================================================================
--- trunk/libavutil/log.c	Fri Sep 24 17:40:53 2010	(r25176)
+++ trunk/libavutil/log.c	Fri Sep 24 18:18:10 2010	(r25177)
@@ -86,7 +86,7 @@ void av_log_default_callback(void* ptr, 
     static int print_prefix=1;
     static int count;
     static char line[1024], prev[1024];
-    static int detect_repeats;
+    static int is_atty;
     AVClass* avc= ptr ? *(AVClass**)ptr : NULL;
     if(level>av_log_level)
         return;
@@ -107,12 +107,12 @@ void av_log_default_callback(void* ptr, 
     print_prefix= line[strlen(line)-1] == '\n';
 
 #if HAVE_ISATTY
-    if(!detect_repeats) detect_repeats= isatty(2) ? 1 : -1;
+    if(!is_atty) is_atty= isatty(2) ? 1 : -1;
 #endif
 
     if(print_prefix && (flags & AV_LOG_SKIP_REPEATED) && !strcmp(line, prev)){
         count++;
-        if(detect_repeats==1)
+        if(is_atty==1)
         fprintf(stderr, "    Last message repeated %d times\r", count);
         return;
     }



More information about the ffmpeg-cvslog mailing list