summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authorUoti Urpala <uau@symbol.nonexistent.invalid>2008-05-01 09:12:38 +0300
committerUoti Urpala <uau@symbol.nonexistent.invalid>2008-05-01 09:12:38 +0300
commit91b3d6a95568eec8a927e488c103e5ba1136e021 (patch)
treedafd22eeb4f5e18d999f2773b6956e3f30c4653b /libvo
parentbec3b84f5ef798ab843028dd62018571a50330ed (diff)
downloadmpv-91b3d6a95568eec8a927e488c103e5ba1136e021.tar.bz2
mpv-91b3d6a95568eec8a927e488c103e5ba1136e021.tar.xz
sub.c: Make tables const
Diffstat (limited to 'libvo')
-rw-r--r--libvo/sub.c4
-rw-r--r--libvo/sub.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/libvo/sub.c b/libvo/sub.c
index 3330baa718..7093a4e8f8 100644
--- a/libvo/sub.c
+++ b/libvo/sub.c
@@ -51,7 +51,7 @@ struct osd_text_p {
};
//^
-char * sub_osd_names[]={
+char * const sub_osd_names[]={
MSGTR_VO_SUB_Seekbar,
MSGTR_VO_SUB_Play,
MSGTR_VO_SUB_Pause,
@@ -66,7 +66,7 @@ char * sub_osd_names[]={
MSGTR_VO_SUB_Hue,
MSGTR_VO_SUB_Balance
};
-char * sub_osd_names_short[] ={ "", "|>", "||", "[]", "<<" , ">>", "", "", "", "", "", "", "" };
+char * const sub_osd_names_short[] ={ "", "|>", "||", "[]", "<<" , ">>", "", "", "", "", "", "", "" };
//static int vo_font_loaded=-1;
font_desc_t* vo_font=NULL;
diff --git a/libvo/sub.h b/libvo/sub.h
index d978935bf2..89861dcc23 100644
--- a/libvo/sub.h
+++ b/libvo/sub.h
@@ -96,8 +96,8 @@ extern void* vo_vobsub;
#define OSD_PB_1 0x13
/* now in textform */
-extern char * sub_osd_names[];
-extern char * sub_osd_names_short[];
+extern char * const sub_osd_names[];
+extern char * const sub_osd_names_short[];
extern int sub_unicode;
extern int sub_utf8;