Commit 6de49420 authored by Julian Rother's avatar Julian Rother
Browse files

Made the logbuffer stream publicly available to allow non-av writes

parent d79c668d
......@@ -32,6 +32,7 @@ void parse_dict(AVDictionary **d, char *s);
void parse_chapters(AVFormatContext *ctx, char *s, int64_t duration);
/* Logging */
extern FILE *logstream;
void init_avlogbuf(void);
void avlogbuf_callback(void *classp, int level, const char *fmt, va_list ap);
char *get_avlogbuf(void);
......@@ -3,9 +3,9 @@
#include "../util.h"
FILE *logstream;
static char *logbuffer;
static size_t logsize;
static FILE *logstream;
static pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER;
static char prevbuf[200] = "";
static int repeats = 0;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment