mirror of https://github.com/mpv-player/mpv
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:
parent
fd8687ce8a
commit
1ab5699571
14
mp_msg.c
14
mp_msg.c
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue