summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
Diffstat (limited to 'libvo')
-rw-r--r--libvo/sub.c12
-rw-r--r--libvo/sub.h2
2 files changed, 7 insertions, 7 deletions
diff --git a/libvo/sub.c b/libvo/sub.c
index aebba9cbfc..4def27fb32 100644
--- a/libvo/sub.c
+++ b/libvo/sub.c
@@ -150,22 +150,22 @@ inline static void vo_draw_text_from_buffer(mp_osd_obj_t* obj,void (*draw_alpha)
}
}
-unsigned utf8_get_char(char **str) {
- uint8_t *strp = (uint8_t *)*str;
+unsigned utf8_get_char(const char **str) {
+ const uint8_t *strp = (const uint8_t *)*str;
unsigned c;
GET_UTF8(c, *strp++, goto no_utf8;);
- *str = (char *)strp;
+ *str = (const char *)strp;
return c;
no_utf8:
- strp = (uint8_t *)*str;
+ strp = (const uint8_t *)*str;
c = *strp++;
- *str = (char *)strp;
+ *str = (const char *)strp;
return c;
}
inline static void vo_update_text_osd(mp_osd_obj_t* obj,int dxs,int dys){
- unsigned char *cp=vo_osd_text;
+ const char *cp=vo_osd_text;
int x=20;
int h=0;
int font;
diff --git a/libvo/sub.h b/libvo/sub.h
index 2241c86e7a..47d9bb646c 100644
--- a/libvo/sub.h
+++ b/libvo/sub.h
@@ -125,7 +125,7 @@ void free_osd_list(void);
extern int vo_osd_changed_flag;
-unsigned utf8_get_char(char **str);
+unsigned utf8_get_char(const char **str);
#ifdef USE_DVDNAV
#include <inttypes.h>