Commit c033b745 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Constify

parent f9934c83
...@@ -202,7 +202,7 @@ char *FindPrefix( demux_t *p_demux ) ...@@ -202,7 +202,7 @@ char *FindPrefix( demux_t *p_demux )
* Add the directory part of the playlist file to the start of the * Add the directory part of the playlist file to the start of the
* mrl, if the mrl is a relative file path * mrl, if the mrl is a relative file path
*/ */
char *ProcessMRL( char *psz_mrl, char *psz_prefix ) char *ProcessMRL( const char *psz_mrl, const char *psz_prefix )
{ {
/* Check for a protocol name. /* Check for a protocol name.
* for URL, we should look for "://" * for URL, we should look for "://"
...@@ -222,8 +222,8 @@ char *ProcessMRL( char *psz_mrl, char *psz_prefix ) ...@@ -222,8 +222,8 @@ char *ProcessMRL( char *psz_mrl, char *psz_prefix )
if( strchr( psz_mrl, ':' ) ) return strdup( psz_mrl ); if( strchr( psz_mrl, ':' ) ) return strdup( psz_mrl );
/* This a relative path, prepend the prefix */ /* This a relative path, prepend the prefix */
if( asprintf( &psz_mrl, "%s%s", psz_prefix, psz_mrl ) != -1 ) char *ret;
return psz_mrl; if( asprintf( &ret, "%s%s", psz_prefix, psz_mrl ) == -1 )
else ret = NULL;
return NULL; return ret;
} }
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
#include <vlc_input.h> #include <vlc_input.h>
#include <vlc_playlist.h> #include <vlc_playlist.h>
char *ProcessMRL( char *, char * ); char *ProcessMRL( const char *, const char * );
char *FindPrefix( demux_t * ); char *FindPrefix( demux_t * );
int Import_Old ( vlc_object_t * ); int Import_Old ( vlc_object_t * );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment