Mercurial > mplayer.hg
diff mplayer.c @ 17106:05af35012e4f
new -msglevel option, constrols msg level for every msg module
author | ods15 |
---|---|
date | Tue, 06 Dec 2005 08:42:48 +0000 |
parents | f067a9de373c |
children | 327be31a101d |
line wrap: on
line diff
--- a/mplayer.c Tue Dec 06 00:45:15 2005 +0000 +++ b/mplayer.c Tue Dec 06 08:42:48 2005 +0000 @@ -343,6 +343,9 @@ int global_sub_indices[SUB_SOURCES]; int global_sub_quiet_osd_hack = 0; +int mp_msg_levels[MSGT_MAX]; // inited to -2 +int mp_msg_level_all = MSGL_STATUS; + static stream_t* stream=NULL; static demuxer_t *demuxer=NULL; static sh_audio_t *sh_audio=NULL; @@ -1328,7 +1331,6 @@ InitTimer(); mp_msg_init(); - mp_msg_set_level(MSGL_STATUS); mp_msg(MSGT_CPLAYER,MSGL_INFO, "MPlayer " VERSION " (C) 2000-2005 MPlayer Team\n"); /* Test for cpu capabilities (and corresponding OS support) for optimizing */ @@ -1564,8 +1566,6 @@ mp_msg(MSGT_CPLAYER, MSGL_INFO, "\n"); } - mp_msg_set_level(verbose+MSGL_STATUS); - //------ load global data first ------ // check font