summaryrefslogtreecommitdiffstats
path: root/codec-cfg.c
diff options
context:
space:
mode:
Diffstat (limited to 'codec-cfg.c')
-rw-r--r--codec-cfg.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/codec-cfg.c b/codec-cfg.c
index afa33e5626..afffa6377f 100644
--- a/codec-cfg.c
+++ b/codec-cfg.c
@@ -886,6 +886,10 @@ void gtkMessageBox( int type,char * str ) { return; }
int use_gui = 0;
#endif
+int mp_msg_levels[MSGT_MAX];
+int mp_msg_level_all = MSGL_STATUS;
+int verbose = 0;
+
void wrapline(FILE *f2,char *s){
int c;
if(!s){
@@ -998,6 +1002,8 @@ int main(int argc, char* argv[])
int dshow=-1;
int win32ex=-1;
+ mp_msg_init();
+
/*
* Take path to codecs.conf from command line, or fall back on
* etc/codecs.conf
@@ -1146,11 +1152,17 @@ int main(int argc, char* argv[])
#endif
#ifdef TESTING
+int mp_msg_levels[MSGT_MAX];
+int mp_msg_level_all = MSGL_STATUS;
+int verbose = 0;
+
int main(void)
{
codecs_t *c;
int i,j, nr_codecs, state;
+ mp_msg_init();
+
if (!(parse_codec_cfg("etc/codecs.conf")))
return 0;
if (!video_codecs)