summaryrefslogtreecommitdiffstats
path: root/common/av_log.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-12-21 20:06:36 +0100
committerwm4 <wm4@nowhere>2013-12-21 21:43:16 +0100
commitd57eaa7e30a2faada712b60e75b7b2eb734cca3c (patch)
tree247ac75074c3b6a226aeeb625bb20f616c1519a2 /common/av_log.h
parent7bdee8f35ed0aa19c83377b7c264c51696f9653f (diff)
downloadmpv-d57eaa7e30a2faada712b60e75b7b2eb734cca3c.tar.bz2
mpv-d57eaa7e30a2faada712b60e75b7b2eb734cca3c.tar.xz
av_log: mp_msg conversion
This is pretty nasty, because FFmpeg/Libav is yet another library with a global message callback. We do something with mutexes trying to get it done, but of course we can't actually solve this problem. If more than one library in a process use FFmpeg/Libav, only one of them will get log messages.
Diffstat (limited to 'common/av_log.h')
-rw-r--r--common/av_log.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/common/av_log.h b/common/av_log.h
index e941220a11..17326b609f 100644
--- a/common/av_log.h
+++ b/common/av_log.h
@@ -1,3 +1,8 @@
-void init_libav(void);
+#ifndef MP_AV_LOG_H
+#define MP_AV_LOG_H
+struct mpv_global;
struct mp_log;
+void init_libav(struct mpv_global *global);
+void uninit_libav(struct mpv_global *global);
void print_libav_versions(struct mp_log *log, int v);
+#endif