From 78448fe1a517aa7734ae14a6959d3f7e0182308e Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 31 Oct 2008 15:56:43 +0100 Subject: decoder_api: pass constant path pointers --- src/decoder/flac_plugin.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/decoder/flac_plugin.c') diff --git a/src/decoder/flac_plugin.c b/src/decoder/flac_plugin.c index a4ccd6ebb..0c4869428 100644 --- a/src/decoder/flac_plugin.c +++ b/src/decoder/flac_plugin.c @@ -220,7 +220,7 @@ static FLAC__StreamDecoderWriteStatus flacWrite(const flac_decoder *dec, } static struct tag * -flacMetadataDup(char *file, bool *vorbisCommentFound) +flacMetadataDup(const char *file, bool *vorbisCommentFound) { struct tag *ret = NULL; FLAC__Metadata_SimpleIterator *it; @@ -278,7 +278,7 @@ flacMetadataDup(char *file, bool *vorbisCommentFound) return ret; } -static struct tag *flacTagDup(char *file) +static struct tag *flacTagDup(const char *file) { struct tag *ret = NULL; bool foundVorbisComment = false; @@ -386,7 +386,7 @@ flac_decode(struct decoder * decoder, struct input_stream *inStream) #if defined(FLAC_API_VERSION_CURRENT) && FLAC_API_VERSION_CURRENT > 7 && \ !defined(HAVE_OGGFLAC) -static struct tag *oggflac_tag_dup(char *file) +static struct tag *oggflac_tag_dup(const char *file) { struct tag *ret = NULL; FLAC__Metadata_Iterator *it; -- cgit v1.2.3