]> git.sesse.net Git - vlc/commitdiff
Some const
authorRémi Denis-Courmont <rem@videolan.org>
Sun, 12 Nov 2006 11:54:28 +0000 (11:54 +0000)
committerRémi Denis-Courmont <rem@videolan.org>
Sun, 12 Nov 2006 11:54:28 +0000 (11:54 +0000)
src/input/input_internal.h
src/input/subtitles.c

index ccd46b3532961a291e49c87ec08c7c110c333346..0905f5a237c9b31983a50161b8dcbb3911e422be 100644 (file)
@@ -151,7 +151,7 @@ void    input_ClockSetPCR( input_thread_t *, input_clock_t *, mtime_t );
 mtime_t input_ClockGetTS( input_thread_t *, input_clock_t *, mtime_t );
 
 /* Subtitles */
-char **subtitles_Detect( input_thread_t *, char* path, char *fname );
+char **subtitles_Detect( input_thread_t *, char* path, const char *fname );
 int subtitles_Filter( const char *);
 
 void MRLSplit( vlc_object_t *, char *, const char **, const char **, char ** );
index 7627cc5d47188907cf0aa8b74cf0f0bce17574db..4e081d54607f5bb058265dfd98cf7d4cb5d9d5b9 100644 (file)
@@ -175,7 +175,7 @@ int subtitles_Filter( const char *psz_dir_content )
 /**
  * Convert a list of paths separated by ',' to a char**
  */
-static char **paths_to_list( char *psz_dir, char *psz_path )
+static char **paths_to_list( const char *psz_dir, char *psz_path )
 {
     unsigned int i, k, i_nb_subdirs;
     char **subdirs; /* list of subdirectories to look in */
@@ -256,7 +256,7 @@ static char **paths_to_list( char *psz_dir, char *psz_path )
  * The array contains max MAX_SUBTITLE_FILES items and you need to free it after use.
  */
 char **subtitles_Detect( input_thread_t *p_this, char *psz_path,
-                         char *psz_name )
+                         const char *psz_name )
 {
     vlc_value_t fuzzy;
     int j, i_result2, i_sub_count = 0, i_fname_len = 0;