[FFmpeg-cvslog] r23767 - trunk/libavutil/log.c
Ramiro Polla
ramiro.polla
Fri Jun 25 06:49:17 CEST 2010
On Fri, Jun 25, 2010 at 1:36 AM, jai_menon <subversion at mplayerhq.hu> wrote:
> Author: jai_menon
> Date: Fri Jun 25 06:36:17 2010
> New Revision: 23767
>
> Log:
> Print a space after the AVClass prefix.
> This improves readability a bit.
>
> Modified:
> ? trunk/libavutil/log.c
>
> Modified: trunk/libavutil/log.c
> ==============================================================================
> --- trunk/libavutil/log.c ? ? ? Fri Jun 25 06:29:02 2010 ? ? ? ?(r23766)
> +++ trunk/libavutil/log.c ? ? ? Fri Jun 25 06:36:17 2010 ? ? ? ?(r23767)
> @@ -94,10 +94,10 @@ void av_log_default_callback(void* ptr,
> ? ? ? ? if(avc->version >= (50<<16 | 15<<8 | 3) && avc->parent_log_context_offset){
> ? ? ? ? ? ? AVClass** parent= *(AVClass***)(((uint8_t*)ptr) + avc->parent_log_context_offset);
> ? ? ? ? ? ? if(parent && *parent){
> - ? ? ? ? ? ? ? ?snprintf(line, sizeof(line), "[%s @ %p]", (*parent)->item_name(parent), parent);
> + ? ? ? ? ? ? ? ?snprintf(line, sizeof(line), "[%s @ %p] ", (*parent)->item_name(parent), parent);
> ? ? ? ? ? ? }
> ? ? ? ? }
> - ? ? ? ?snprintf(line + strlen(line), sizeof(line) - strlen(line), "[%s @ %p]", avc->item_name(ptr), ptr);
> + ? ? ? ?snprintf(line + strlen(line), sizeof(line) - strlen(line), "[%s @ %p] ", avc->item_name(ptr), ptr);
> ? ? }
>
> ? ? vsnprintf(line + strlen(line), sizeof(line) - strlen(line), fmt, vl);
There are some av_log()s that had a leading space inside the string.
Those could be removed now.
(btw what's up with those wtf language strings in wc3movie.c?)
More information about the ffmpeg-cvslog
mailing list