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

Justin Ruggles justin.ruggles
Mon Aug 23 13:17:07 CEST 2010


M?ns Rullg?rd wrote:

> michael <subversion at mplayerhq.hu> writes:
> 
>> Author: michael
>> Date: Wed Jul 28 14:08:26 2010
>> New Revision: 24573
>>
>> Log:
>> Make sure "Last message repeated" is printed.
>>
>> Modified:
>>    trunk/libavutil/log.c
>>
>> Modified: trunk/libavutil/log.c
>> ==============================================================================
>> --- trunk/libavutil/log.c	Wed Jul 28 12:29:41 2010	(r24572)
>> +++ trunk/libavutil/log.c	Wed Jul 28 14:08:26 2010	(r24573)
>> @@ -105,6 +105,7 @@ void av_log_default_callback(void* ptr, 
>>      print_prefix= line[strlen(line)-1] == '\n';
>>      if(print_prefix && !strcmp(line, prev)){
>>          count++;
>> +        fprintf(stderr, "    Last message repeated %d times\r", count);
>>          return;
>>      }
>>      if(count>0){
> 
> Please revert this nonsense.  With a repeating message, it now looks
> like this:
> 
> [foo @ 0xaddr] Some message
>     Last message repeated 1 times
>     Last message repeated 2 times
>     Last message repeated 3 times
>     Last message repeated 4 times
>     Last message repeated 5 times
>     Last message repeated 6 times
>     Last message repeated 7 times
>     Last message repeated 8 times
>     Last message repeated 9 times
>     Last message repeated 10 times
>     Last message repeated 11 times
>     Last message repeated 12 times
>     Last message repeated 13 times
>     Last message repeated 14 times
>     Last message repeated 15 times
>     Last message repeated 16 times
>     Last message repeated 17 times
>     Last message repeated 18 times
>     Last message repeated 19 times
>     Last message repeated 20 times
>     Last message repeated 21 times
>     Last message repeated 22 times
>     Last message repeated 23 times
> 
> ... ad nauseum.

+1
this is pretty annoying.

-Justin





More information about the ffmpeg-cvslog mailing list