diff --git a/util.h b/util.h index fef2e1391a6eda5a75024bb3bb7a0ca660f24706..2ecf5a63b1786a7408c3e11311a4e20b0d94a9c0 100644 --- a/util.h +++ b/util.h @@ -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); diff --git a/util/avlogbuf.c b/util/avlogbuf.c index 2d34f992555eff4196ffc840d744147c09d8c3a3..4116bf8fd980bb09ab4b2e90ec1349c132f758c6 100644 --- a/util/avlogbuf.c +++ b/util/avlogbuf.c @@ -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;