Browse Source

avutil/log: skip IO calls on empty strings

These occur when no context is set for example, thus they are common

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.2-rc1
Michael Niedermayer 11 years ago
parent
commit
a044a183a3
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      libavutil/log.c

+ 3
- 0
libavutil/log.c View File

@@ -103,6 +103,9 @@ static int use_color = -1;

static void colored_fputs(int level, const char *str)
{
if (!*str)
return;

if (use_color < 0) {
#if HAVE_SETCONSOLETEXTATTRIBUTE
CONSOLE_SCREEN_BUFFER_INFO con_info;


Loading…
Cancel
Save