diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2010-09-24 16:18:10 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2010-09-24 16:18:10 +0000 |
commit | 8a19053361938bc05c3f6521b44786ce481356f5 (patch) | |
tree | 4b14d33cc7d842f0a3cb628ae636199b8d72cbe4 /libavutil | |
parent | 3f07e8dbee6942b11ad707047da95da538d9c3c9 (diff) | |
download | ffmpeg-8a19053361938bc05c3f6521b44786ce481356f5.tar.gz |
Cosmetic (rename detect_repeats to is_atty which matches the truth)
Originally committed as revision 25177 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavutil')
-rw-r--r-- | libavutil/log.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavutil/log.c b/libavutil/log.c index ec16c67ad8..52369a9d5e 100644 --- a/libavutil/log.c +++ b/libavutil/log.c @@ -86,7 +86,7 @@ void av_log_default_callback(void* ptr, int level, const char* fmt, va_list vl) 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, int level, const char* fmt, va_list vl) 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; } |