Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
libav: fix multi line log messages
  • Loading branch information
stbenz authored and perexg committed Jun 8, 2015
1 parent bf668e1 commit 9ab3801
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/libav.c
Expand Up @@ -45,17 +45,17 @@ libav_log_callback(void *ptr, int level, const char *fmt, va_list vl)
while(l < message + sizeof(message)) {
nl = strstr(l, "\n");
if(nl)
*nl = '\0';
*nl = '\0';

if(!strlen(l))
break;
break;

tvhlog(level, "libav", "%s", l);

l += strlen(message);

if(!nl)
break;
break;

l = nl + 1;
}
}

Expand Down

0 comments on commit 9ab3801

Please sign in to comment.