The function parameter 'preferred_language' should be const char *.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25428 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
ulion 2007-12-17 01:06:17 +00:00
parent 92f52e811b
commit 9bfbfd8c4d
2 changed files with 4 additions and 4 deletions

View File

@ -1270,7 +1270,7 @@ struct subreader {
};
#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 @@ const char* guess_buffer_cp(unsigned char* buffer, int buflen, char *preferred_
}
#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;

View File

@ -74,8 +74,8 @@ struct stream_st;
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);