decoder_api: pass constant path pointers

This commit is contained in:
Max Kellermann
2008-10-31 15:56:43 +01:00
parent 6d6e615825
commit 78448fe1a5
12 changed files with 43 additions and 29 deletions

View File

@@ -236,7 +236,7 @@ mpc_decode(struct decoder *mpd_decoder, struct input_stream *inStream)
return true;
}
static float mpcGetTime(char *file)
static float mpcGetTime(const char *file)
{
struct input_stream inStream;
float total_time = -1;
@@ -274,7 +274,7 @@ static float mpcGetTime(char *file)
return total_time;
}
static struct tag *mpcTagDup(char *file)
static struct tag *mpcTagDup(const char *file)
{
struct tag *ret = NULL;
float total_time = mpcGetTime(file);