# HG changeset patch # User ulion # Date 1197853577 0 # Node ID fb8ad8ae4dfd262522374c4c62ed36d81c5dbf70 # Parent 45d3ecc4c7e04530e53fc9a07b95c5067d3c7657 The function parameter 'preferred_language' should be const char *. diff -r 45d3ecc4c7e0 -r fb8ad8ae4dfd subreader.c --- a/subreader.c Mon Dec 17 00:11:33 2007 +0000 +++ b/subreader.c Mon Dec 17 01:06:17 2007 +0000 @@ -1270,7 +1270,7 @@ }; #ifdef HAVE_ENCA -const char* guess_buffer_cp(unsigned char* buffer, int buflen, char *preferred_language, const char *fallback) +const char* guess_buffer_cp(unsigned char* buffer, int buflen, const char *preferred_language, const char *fallback) { const char **languages; size_t langcnt; @@ -1310,7 +1310,7 @@ } #define MAX_GUESS_BUFFER_SIZE (256*1024) -const char* guess_cp(stream_t *st, char *preferred_language, const char *fallback) +const char* guess_cp(stream_t *st, const char *preferred_language, const char *fallback) { size_t buflen; unsigned char *buffer; diff -r 45d3ecc4c7e0 -r fb8ad8ae4dfd subreader.h --- a/subreader.h Mon Dec 17 00:11:33 2007 +0000 +++ b/subreader.h Mon Dec 17 01:06:17 2007 +0000 @@ -74,8 +74,8 @@ void subcp_open (struct stream_st *st); /* for demux_ogg.c */ void subcp_close (void); /* for demux_ogg.c */ #ifdef HAVE_ENCA -const char* guess_buffer_cp(unsigned char* buffer, int buflen, char *preferred_language, const char *fallback); -const char* guess_cp(struct stream_st *st, char *preferred_language, const char *fallback); +const char* guess_buffer_cp(unsigned char* buffer, int buflen, const char *preferred_language, const char *fallback); +const char* guess_cp(struct stream_st *st, const char *preferred_language, const char *fallback); #endif char ** sub_filenames(const char *path, char *fname); void list_sub_file(sub_data* subd);