Fix possible crashes with colorized mplayer output

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21669 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2006-12-18 18:50:46 +00:00
parent fd8687ce8a
commit 1ab5699571
1 changed files with 11 additions and 3 deletions

View File

@ -131,8 +131,10 @@ void mp_msg(int mod, int lev, const char *format, ... ){
"V",
"DGB2",
"DGB3",
"DGB4"};
static const char *mod_text[]= {
"DGB4",
"DBG5",
};
static const char *mod_text[MSGT_MAX]= {
"GLOBAL",
"CPLAYER",
"GPLAYER",
@ -172,7 +174,13 @@ void mp_msg(int mod, int lev, const char *format, ... ){
"SUBREADER",
"AFILTER",
"NETST",
"MUXER"};
"MUXER",
"OSDMENU",
"IDENTIFY",
"RADIO",
"ASS",
"LOADER",
};
int c=v_colors[lev];
int c2=(mod+1)%15+1;