Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
...@@ -32,6 +32,7 @@ void parse_dict(AVDictionary **d, char *s); ...@@ -32,6 +32,7 @@ void parse_dict(AVDictionary **d, char *s);
void parse_chapters(AVFormatContext *ctx, char *s, int64_t duration); void parse_chapters(AVFormatContext *ctx, char *s, int64_t duration);
/* Logging */ /* Logging */
extern FILE *logstream;
void init_avlogbuf(void); void init_avlogbuf(void);
void avlogbuf_callback(void *classp, int level, const char *fmt, va_list ap); void avlogbuf_callback(void *classp, int level, const char *fmt, va_list ap);
char *get_avlogbuf(void); char *get_avlogbuf(void);
......
...@@ -3,9 +3,9 @@ ...@@ -3,9 +3,9 @@
#include "../util.h" #include "../util.h"
FILE *logstream;
static char *logbuffer; static char *logbuffer;
static size_t logsize; static size_t logsize;
static FILE *logstream;
static pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER; static pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER;
static char prevbuf[200] = ""; static char prevbuf[200] = "";
static int repeats = 0; static int repeats = 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment