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.
This commit is contained in:
wm4
2013-12-21 20:06:36 +01:00
parent 7bdee8f35e
commit d57eaa7e30
3 changed files with 74 additions and 35 deletions

View File

@@ -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