[MPlayer-cvslog] r25428 - in trunk: subreader.c subreader.h

ulion subversion at mplayerhq.hu
Mon Dec 17 02:06:17 CET 2007


Author: ulion
Date: Mon Dec 17 02:06:17 2007
New Revision: 25428

Log:
It should be const char *.


Modified:
   trunk/subreader.c
   trunk/subreader.h

Modified: trunk/subreader.c
==============================================================================
--- trunk/subreader.c	(original)
+++ trunk/subreader.c	Mon Dec 17 02:06:17 2007
@@ -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 cha
 }
 
 #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;

Modified: trunk/subreader.h
==============================================================================
--- trunk/subreader.h	(original)
+++ trunk/subreader.h	Mon Dec 17 02:06:17 2007
@@ -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);



More information about the MPlayer-cvslog mailing list