# HG changeset patch # User michael # Date 1285345090 0 # Node ID d5c1288962a1c27d1c793b4ae334550da2171d27 # Parent 4a16166d580e52b087763c4d4b0e2c5ceb3c10ab Cosmetic (rename detect_repeats to is_atty which matches the truth) diff -r 4a16166d580e -r d5c1288962a1 log.c --- a/log.c Fri Sep 24 15:37:01 2010 +0000 +++ b/log.c Fri Sep 24 16:18:10 2010 +0000 @@ -86,7 +86,7 @@ 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 @@ 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; }