summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
authorods15 <ods15@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-12-06 08:42:48 +0000
committerods15 <ods15@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-12-06 08:42:48 +0000
commit5aac28ec24961c7e02c4a2e7085e641a3a4b78c7 (patch)
treede6fbe5806cddfd8d6714ff28857726ce9f3f767 /mplayer.c
parent6455d918ad65a7427107a0e5d5b45d4bfdf6653d (diff)
downloadmpv-5aac28ec24961c7e02c4a2e7085e641a3a4b78c7.tar.bz2
mpv-5aac28ec24961c7e02c4a2e7085e641a3a4b78c7.tar.xz
new -msglevel option, constrols msg level for every msg module
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17107 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mplayer.c')
-rw-r--r--mplayer.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mplayer.c b/mplayer.c
index 57b87cfb84..817b030491 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -343,6 +343,9 @@ int global_sub_pos = -1; // this encompasses all subtitle sources
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 @@ int gui_no_filename=0;
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 @@ if (edl_check_mode() == EDL_ERROR && edl_filename)
mp_msg(MSGT_CPLAYER, MSGL_INFO, "\n");
}
- mp_msg_set_level(verbose+MSGL_STATUS);
-
//------ load global data first ------
// check font