changeset 21653:04cea12cd324

Fix possible crashes with colorized mplayer output
author reimar
date Mon, 18 Dec 2006 18:50:46 +0000
parents 7b900b866126
children 3286c2936f14
files mp_msg.c
diffstat 1 files changed, 11 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/mp_msg.c	Mon Dec 18 15:24:55 2006 +0000
+++ b/mp_msg.c	Mon Dec 18 18:50:46 2006 +0000
@@ -131,8 +131,10 @@
                                 "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 @@
                                 "SUBREADER",
                                 "AFILTER",
                                 "NETST",
-                                "MUXER"};
+                                "MUXER",
+                                "OSDMENU",
+                                "IDENTIFY",
+                                "RADIO",
+                                "ASS",
+                                "LOADER",
+        };
 
         int c=v_colors[lev];
         int c2=(mod+1)%15+1;