[MPlayer-cvslog] r37704 - in trunk/sub: sub.c sub.h
reimar
subversion at mplayerhq.hu
Sat Feb 13 17:54:23 CET 2016
Author: reimar
Date: Sat Feb 13 17:54:23 2016
New Revision: 37704
Log:
sub: Make sub_osd_names tables const.
Modified:
trunk/sub/sub.c
trunk/sub/sub.h
Modified: trunk/sub/sub.c
==============================================================================
--- trunk/sub/sub.c Sat Feb 13 17:37:16 2016 (r37703)
+++ trunk/sub/sub.c Sat Feb 13 17:54:23 2016 (r37704)
@@ -64,7 +64,7 @@ struct osd_text_p {
};
//^
-char * sub_osd_names[]={
+const char * const sub_osd_names[]={
MSGTR_VO_SUB_Seekbar,
MSGTR_VO_SUB_Play,
MSGTR_VO_SUB_Pause,
@@ -79,7 +79,7 @@ char * sub_osd_names[]={
MSGTR_VO_SUB_Hue,
MSGTR_VO_SUB_Balance
};
-char * sub_osd_names_short[] ={ "", "|>", "||", "[]", "<<" , ">>", "", "", "", "", "", "", "" };
+const char * const sub_osd_names_short[] ={ "", "|>", "||", "[]", "<<" , ">>", "", "", "", "", "", "", "" };
//static int vo_font_loaded=-1;
font_desc_t* vo_font=NULL;
Modified: trunk/sub/sub.h
==============================================================================
--- trunk/sub/sub.h Sat Feb 13 17:37:16 2016 (r37703)
+++ trunk/sub/sub.h Sat Feb 13 17:54:23 2016 (r37704)
@@ -108,8 +108,8 @@ extern char *vobsub_name;
#define OSD_PB_1 0x13
/* now in textform */
-extern char * sub_osd_names[];
-extern char * sub_osd_names_short[];
+extern const char * const sub_osd_names[];
+extern const char * const sub_osd_names_short[];
extern int sub_unicode;
extern int sub_utf8;
More information about the MPlayer-cvslog
mailing list