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 )
* Add the directory part of the playlist file to the start of the
* 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.
* for URL, we should look for "://"
......@@ -222,8 +222,8 @@ char *ProcessMRL( char *psz_mrl, char *psz_prefix )
if( strchr( psz_mrl, ':' ) ) return strdup( psz_mrl );
/* This a relative path, prepend the prefix */
if( asprintf( &psz_mrl, "%s%s", psz_prefix, psz_mrl ) != -1 )
return psz_mrl;
else
return NULL;
char *ret;
if( asprintf( &ret, "%s%s", psz_prefix, psz_mrl ) == -1 )
ret = NULL;
return ret;
}
......@@ -24,7 +24,7 @@
#include <vlc_input.h>
#include <vlc_playlist.h>
char *ProcessMRL( char *, char * );
char *ProcessMRL( const char *, const char * );
char *FindPrefix( demux_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