summaryrefslogtreecommitdiffstats
path: root/mp_msg.c
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-12-18 18:50:46 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-12-18 18:50:46 +0000
commit1ab5699571b88c3892add309f8d8a812915bda9c (patch)
tree136160918a0526770075165b3de2e946f05d20ef /mp_msg.c
parentfd8687ce8ab8a52d17a60d9f4161977c79592276 (diff)
downloadmpv-1ab5699571b88c3892add309f8d8a812915bda9c.tar.bz2
mpv-1ab5699571b88c3892add309f8d8a812915bda9c.tar.xz
Fix possible crashes with colorized mplayer output
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21669 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mp_msg.c')
-rw-r--r--mp_msg.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/mp_msg.c b/mp_msg.c
index c6bb3bc942..c3d8db22a5 100644
--- a/mp_msg.c
+++ b/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;